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.
2 parents a5f380e + fc40d71 commit 926a4ffCopy full SHA for 926a4ff
src/AdafruitIO_FONA.h
@@ -123,6 +123,18 @@ class AdafruitIO_FONA : public AdafruitIO {
123
124
_status = AIO_NET_DISCONNECTED;
125
}
126
+
127
+ /**************************************************************************/
128
+ /*!
129
+ @brief Disconnects from Adafruit IO and the cellular network.
130
+ */
131
132
+ void _disconnect() {
133
+ if (!_fona->enableGPRS(false)) {
134
+ AIO_DEBUG_PRINTLN("Failed to turn off GPRS.");
135
+ }
136
+ _status = AIO_NET_DISCONNECTED;
137
138
};
139
140
#endif // ADAFRUITIO_FONA_H
0 commit comments