Skip to content

Commit ba75e88

Browse files
author
Travis CI
committed
added fixed yun example. removed default uuids
1 parent f33a8cf commit ba75e88

File tree

3 files changed

+8
-21
lines changed

3 files changed

+8
-21
lines changed

arduino/examples/tentacle-ethernet/tentacle-ethernet.ino

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ byte mac[] = {
1414
#define server "tentacle.octoblu.com"
1515
#define port 80
1616

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";
1919

2020
EthernetClient conn;
2121

arduino/examples/tentacle-wifi/tentacle-wifi.ino

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@
88
#include "tentacle-build.h"
99

1010
//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";
1313
#define server "tentacle.octoblu.com"
1414
/*#include "wifi-credentials.h"*/
1515
#define port 80
1616

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";
1919

2020
int status = WL_IDLE_STATUS;
2121
WiFiClient conn;

arduino/examples/tentacle-yun/tentacle-yun.ino

+2-15
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,12 @@
33

44
#include "tentacle-build.h"
55

6-
#define DELAY 2000
76

87
#define server "tentacle.octoblu.com"
98
#define port 80
109

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";
1312

1413
YunClient conn;
1514

@@ -51,29 +50,17 @@ void readData() {
5150
}
5251

5352
void connectToServer() {
54-
int connectionAttempts = 0;
5553
Serial.println(F("Connecting to the server."));
5654
Serial.flush();
5755

5856
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-
}
6557
Serial.println(F("Can't connect to the server."));
6658
Serial.flush();
6759
conn.stop();
68-
connectionAttempts++;
6960
}
7061

7162
size_t authSize = pseudopod.authenticate(uuid, token);
7263
Serial.print(authSize);
7364
Serial.println(F(" bytes written for authentication"));
7465

7566
}
76-
77-
void softReset() {
78-
asm volatile (" jmp 0");
79-
}

0 commit comments

Comments
 (0)