File tree 3 files changed +8
-21
lines changed
3 files changed +8
-21
lines changed Original file line number Diff line number Diff line change @@ -14,8 +14,8 @@ byte mac[] = {
14
14
#define server " tentacle.octoblu.com"
15
15
#define port 80
16
16
17
- static const char uuid[] = " ff12c403-04c7-4e63-9073-2e3b1f8e4450 " ;
18
- static const char token[] = " 28d2c24dfa0a5289799a345e683d570880a3bc41 " ;
17
+ static const char uuid[] = " INSERT UUID HERE " ;
18
+ static const char token[] = " INSERT TOKEN HERE " ;
19
19
20
20
EthernetClient conn;
21
21
Original file line number Diff line number Diff line change 8
8
#include " tentacle-build.h"
9
9
10
10
// octoblu hq
11
- char ssid[] = " octoblu-guest " ;
12
- char password[] = " octoblu1 " ;
11
+ char ssid[] = " INSERT WIFI NAME HERE " ;
12
+ char password[] = " INSERT WIFI PASSWORD HERE " ;
13
13
#define server " tentacle.octoblu.com"
14
14
/* #include "wifi-credentials.h"*/
15
15
#define port 80
16
16
17
- static const char uuid[] = " ff12c403-04c7-4e63-9073-2e3b1f8e4450 " ;
18
- static const char token[] = " 28d2c24dfa0a5289799a345e683d570880a3bc41 " ;
17
+ static const char uuid[] = " INSERT UUID HERE " ;
18
+ static const char token[] = " INSERT TOKEN HERE " ;
19
19
20
20
int status = WL_IDLE_STATUS;
21
21
WiFiClient conn;
Original file line number Diff line number Diff line change 3
3
4
4
#include " tentacle-build.h"
5
5
6
- #define DELAY 2000
7
6
8
7
#define server " tentacle.octoblu.com"
9
8
#define port 80
10
9
11
- static const char uuid[] = " ff12c403-04c7-4e63-9073-2e3b1f8e4450 " ;
12
- static const char token[] = " 28d2c24dfa0a5289799a345e683d570880a3bc41 " ;
10
+ static const char uuid[] = " INSERT UUID HERE " ;
11
+ static const char token[] = " INSERT TOKEN HERE " ;
13
12
14
13
YunClient conn;
15
14
@@ -51,29 +50,17 @@ void readData() {
51
50
}
52
51
53
52
void connectToServer () {
54
- int connectionAttempts = 0 ;
55
53
Serial.println (F (" Connecting to the server." ));
56
54
Serial.flush ();
57
55
58
56
while (!conn.connect (server, port)) {
59
- if (connectionAttempts > 5 ) {
60
- Serial.println (F (" Still can't connect. I must have gone crazy. Rebooting" ));
61
- Serial.flush ();
62
-
63
- softReset ();
64
- }
65
57
Serial.println (F (" Can't connect to the server." ));
66
58
Serial.flush ();
67
59
conn.stop ();
68
- connectionAttempts++;
69
60
}
70
61
71
62
size_t authSize = pseudopod.authenticate (uuid, token);
72
63
Serial.print (authSize);
73
64
Serial.println (F (" bytes written for authentication" ));
74
65
75
66
}
76
-
77
- void softReset () {
78
- asm volatile (" jmp 0" );
79
- }
You can’t perform that action at this time.
0 commit comments