Skip to content

Commit c350808

Browse files
committed
Examples: add Cellular support
1 parent 023832c commit c350808

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

examples/ConnectionHandlerDemo/ConnectionHandlerDemo.ino

+2
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ NBConnectionHandler conMan(SECRET_PIN);
4343
LoRaConnectionHandler conMan(SECRET_APP_EUI, SECRET_APP_KEY);
4444
#elif defined(BOARD_HAS_CATM1_NBIOT)
4545
CatM1ConnectionHandler conMan(SECRET_APN, SECRET_PIN, SECRET_GSM_USER, SECRET_GSM_PASS);
46+
#elif defined(BOARD_HAS_CELLULAR)
47+
CellularConnectionHandler conMan(SECRET_PIN, SECRET_APN, SECRET_GSM_USER, SECRET_GSM_PASS);
4648
#endif
4749

4850
void setup() {

examples/ConnectionHandlerDemo/arduino_secrets.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
const char SECRET_SSID[] = "NETWORK NAME";
22
const char SECRET_PASS[] = "NETWORK PASSWORD";
33

4-
const char SECRET_APN[] = "MOBILE PROVIDER APN ADDRESS";
5-
const char SECRET_PIN[] = "0000";
6-
const char SECRET_GSM_USER[] = "GSM USERNAME";
7-
const char SECRET_GSM_PASS[] = "GSM PASSWORD";
4+
const char SECRET_APN[] = "iliad";
5+
const char SECRET_PIN[] = "";
6+
const char SECRET_GSM_USER[] = "";
7+
const char SECRET_GSM_PASS[] = "";
88

99
const char SECRET_APP_EUI[] = "APP_EUI";
1010
const char SECRET_APP_KEY[] = "APP_KEY";

0 commit comments

Comments
 (0)