We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb26ac8 commit c8f87a2Copy full SHA for c8f87a2
src/CellularConnectionHandler.h
@@ -20,6 +20,8 @@
20
21
#if defined(ARDUINO_PORTENTA_C33) || defined(ARDUINO_PORTENTA_H7_M7)
22
#include <Arduino_Cellular.h>
23
+#elif defined(ARDUINO_OPTA)
24
+#include <Arduino_OptaCellular.h>
25
#endif
26
27
#ifndef BOARD_HAS_CELLULAR
@@ -53,7 +55,16 @@ class CellularConnectionHandler : public ConnectionHandler
53
55
54
56
private:
57
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
66
ArduinoCellular _cellular;
67
+ #endif
68
TinyGsmClient _gsm_client = _cellular.getNetworkClient();
69
};
70
0 commit comments