File tree 4 files changed +31
-29
lines changed
4 files changed +31
-29
lines changed Original file line number Diff line number Diff line change 2
2
#include < ConnectionManager.h>
3
3
#include < GSMConnectionManager.h>
4
4
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"
24
6
25
7
String cloudSerialBuffer = " " ; // the string used to compose network messages from the received characters
26
8
// 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 2
2
#include < ConnectionManager.h>
3
3
#include < WiFiConnectionManager.h>
4
4
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"
14
6
15
7
String cloudSerialBuffer = " " ; // the string used to compose network messages from the received characters
16
8
// handles connection to the network
17
- ConnectionManager * ArduinoIoTPreferredConnection = new WiFiConnectionManager(SECRET_WIFI_NAME, SECRET_PASSWORD );
9
+ ConnectionManager * ArduinoIoTPreferredConnection = new WiFiConnectionManager(SECRET_SSID, SECRET_PASS );
18
10
19
11
void setup () {
20
12
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