Skip to content

Commit c8f87a2

Browse files
committed
Added Opta Cellular as Cellular connection handler
1 parent eb26ac8 commit c8f87a2

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/CellularConnectionHandler.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020

2121
#if defined(ARDUINO_PORTENTA_C33) || defined(ARDUINO_PORTENTA_H7_M7)
2222
#include <Arduino_Cellular.h>
23+
#elif defined(ARDUINO_OPTA)
24+
#include <Arduino_OptaCellular.h>
2325
#endif
2426

2527
#ifndef BOARD_HAS_CELLULAR
@@ -53,7 +55,16 @@ class CellularConnectionHandler : public ConnectionHandler
5355

5456
private:
5557

58+
const char * _pin;
59+
const char * _apn;
60+
const char * _login;
61+
const char * _pass;
62+
63+
#if defined(ARDUINO_OPTA)
64+
ArduinoCellular &_cellular = CellularExpansion::getCellular();
65+
#else
5666
ArduinoCellular _cellular;
67+
#endif
5768
TinyGsmClient _gsm_client = _cellular.getNetworkClient();
5869
};
5970

0 commit comments

Comments
 (0)