Skip to content

Commit 731dcdb

Browse files
committed
small fixes
1 parent 939ab6a commit 731dcdb

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

SolArduino_atom/SolArduino/communication.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ unsigned long getNtpTime() {
201201
void requestNewTable() {
202202
Serial.println(F("requesting new data"));
203203
responseReceived = false; // set boolean to 'wait for request'
204-
ether.browseUrl(PSTR("/solarduino.php"), "", NULL, my_callback);
204+
ether.browseUrl(PSTR("/index.php"), "", NULL, my_callback);
205205
tableIndex = 0; //reset global index
206206
}
207207

SolArduino_atom/SolArduino/setup.ino

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ void setupNAS() {
4343
// if (!ether.dnsLookup(website))
4444
// Serial.println("DNS failed");
4545
//instead of dns lookup, set hisip (ip of NAS) manually to be used by browseURL
46-
ether.hisip[0]=68;
47-
ether.hisip[1]=66;
48-
ether.hisip[2]=243;
49-
ether.hisip[3]=182;
46+
ether.hisip[0]=192;
47+
ether.hisip[1]=168;
48+
ether.hisip[2]=8;
49+
ether.hisip[3]=200;
5050
//below not applicable anymore, but could always change
5151
// the http request needs a different dns, so we set that here and do setup again
5252
// dns[0] = 192;

UnitTests/requestParseAngles/communicatin.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,12 @@ void requestNewTable() {
7575

7676
// called when the client request is complete
7777
static void my_callback (byte status, word off, word len) {
78-
if (!responseReceived) { //sometimes there come more responses, but we only need one
78+
// if (!responseReceived) { //sometimes there come more responses, but we only need one
7979
Ethernet::buffer[off+TABLE_SIZE] = 0;
8080
char* result = (char*) Ethernet::buffer + off;
8181
delay(42); // Make sure the request is sent and received properly, no delay results in a 400 bad request
8282
Serial.println(result);
8383
parseString(result); // fill the arrays with the data
8484
responseReceived = true;
85-
}
85+
// }
8686
}

UnitTests/requestParseAngles/requestParseAngles.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
const int TABLE_LENGTH = 10; // declare length here is easier
88
int angles[TABLE_LENGTH]; //stores angles*10
99
long dates[TABLE_LENGTH]; //stores unix times
10-
const int TABLE_SIZE = 400; //this many bytes for 10 angles will do, used in ethernet buffer and when parsing
10+
const int TABLE_SIZE = 600; // 400 bytes for 10 angles will do, used in ethernet buffer and when parsing. 600 to show a complete 400 bad request.
1111
int tableIndex = 0; // The current index in the table when in auto mode
1212

1313
//ethernet variables, these are hard coded for a static setup

0 commit comments

Comments
 (0)