File tree Expand file tree Collapse file tree 4 files changed +31
-29
lines changed Expand file tree Collapse file tree 4 files changed +31
-29
lines changed Original file line number Diff line number Diff line change 22#include < ConnectionManager.h>
33#include < GSMConnectionManager.h>
44
5- #ifndef SECRET_PIN
6- #define SECRET_PIN " "
7- #pragma message "You need to define SECRET_PIN in tab/arduino_secrets.h"
8- #endif
9-
10- #ifndef SECRET_APN
11- #define SECRET_APN " "
12- #pragma message "You need to define SECRET_PIN in tab/arduino_secrets.h"
13- #endif
14-
15- #ifndef SECRET_USER_NAME
16- #define SECRET_USER_NAME " "
17- #pragma message "You need to define SECRET_USER_NAME in tab/arduino_secrets.h"
18- #endif
19-
20- #ifndef SECRET_PASSWORD
21- #define SECRET_PASSWORD " "
22- #pragma message "You need to define SECRET_PASSWORD in tab/arduino_secrets.h"
23- #endif
5+ #include " arduino_secrets.h"
246
257String cloudSerialBuffer = " " ; // the string used to compose network messages from the received characters
268// handles connection to the network
Original file line number Diff line number Diff line change 1+ #ifndef SECRET_PIN
2+ #define SECRET_PIN ""
3+ #warning "You need to define SECRET_PIN in tab/arduino_secrets.h"
4+ #endif
5+
6+ #ifndef SECRET_APN
7+ #define SECRET_APN ""
8+ #warning "You need to define SECRET_PIN in tab/arduino_secrets.h"
9+ #endif
10+
11+ #ifndef SECRET_USER_NAME
12+ #define SECRET_USER_NAME ""
13+ #warning "You need to define SECRET_USER_NAME in tab/arduino_secrets.h"
14+ #endif
15+
16+ #ifndef SECRET_PASSWORD
17+ #define SECRET_PASSWORD ""
18+ #warning "You need to define SECRET_PASSWORD in tab/arduino_secrets.h"
19+ #endif
Original file line number Diff line number Diff line change 22#include < ConnectionManager.h>
33#include < WiFiConnectionManager.h>
44
5- #ifndef SECRET_WIFI_NAME
6- #define SECRET_WIFI_NAME " "
7- #pragma message "You need to define SECRET_WIFI_NAME in tab/arduino_secrets.h"
8- #endif
9-
10- #ifndef SECRET_PASSWORD
11- #define SECRET_PASSWORD " "
12- #pragma message "You need to define SECRET_PASSWORD in tab/arduino_secrets.h"
13- #endif
5+ #include " arduino_secrets.h"
146
157String cloudSerialBuffer = " " ; // the string used to compose network messages from the received characters
168// handles connection to the network
17- ConnectionManager * ArduinoIoTPreferredConnection = new WiFiConnectionManager(SECRET_WIFI_NAME, SECRET_PASSWORD );
9+ ConnectionManager * ArduinoIoTPreferredConnection = new WiFiConnectionManager(SECRET_SSID, SECRET_PASS );
1810
1911void setup () {
2012 setDebugMessageLevel (3 ); // used to set a level of granularity in information output [0...4]
Original file line number Diff line number Diff line change 1+ #ifndef SECRET_SSID
2+ #define SECRET_SSID ""
3+ #warning "You need to define SECRET_SSID in tab/arduino_secrets.h"
4+ #endif
5+
6+ #ifndef SECRET_PASS
7+ #define SECRET_PASS ""
8+ #warning "You need to define SECRET_PASS in tab/arduino_secrets.h"
9+ #endif
You can’t perform that action at this time.
0 commit comments