Skip to content

Commit ffaa0f1

Browse files
committed
Deleting all debug statements with verbose debug output - development has been done so there is no need for them but they clutter code space and flash space
1 parent 11f936f commit ffaa0f1

File tree

3 files changed

+0
-20
lines changed

3 files changed

+0
-20
lines changed

src/Arduino_GSMConnectionHandler.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,6 @@ NetworkConnectionState GSMConnectionHandler::check()
101101

102102
void GSMConnectionHandler::disconnect()
103103
{
104-
Debug.print(DBG_VERBOSE, "Disconnecting from Cellular Network");
105104
_gsm.shutdown();
106105
_keep_alive = false;
107106
netConnectionState = NetworkConnectionState::DISCONNECTING;
@@ -167,13 +166,11 @@ NetworkConnectionState GSMConnectionHandler::update_handleConnecting()
167166
NetworkConnectionState GSMConnectionHandler::update_handleConnected()
168167
{
169168
int const is_gsm_access_alive = _gsm.isAccessAlive();
170-
Debug.print(DBG_VERBOSE, "GPRS.isAccessAlive(): %d", is_gsm_access_alive);
171169
if (is_gsm_access_alive != 1)
172170
{
173171
execCallback(NetworkConnectionEvent::DISCONNECTED, 0);
174172
return NetworkConnectionState::DISCONNECTED;
175173
}
176-
Debug.print(DBG_VERBOSE, "Connected to Cellular Network");
177174
return NetworkConnectionState::CONNECTED;
178175
}
179176

@@ -187,7 +184,6 @@ NetworkConnectionState GSMConnectionHandler::update_handleDisconnected()
187184
{
188185
if (_keep_alive)
189186
{
190-
Debug.print(DBG_VERBOSE, "keep alive > INIT");
191187
return NetworkConnectionState::INIT;
192188
}
193189
else

src/Arduino_LoRaConnectionHandler.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -156,10 +156,8 @@ void LoRaConnectionHandler::disconnect()
156156

157157
NetworkConnectionState LoRaConnectionHandler::update_handleInit()
158158
{
159-
Debug.print(DBG_VERBOSE, "::INIT");
160159
if (!_modem.begin(_band))
161160
{
162-
Debug.print(DBG_VERBOSE, "Failed to start module");
163161
execCallback(NetworkConnectionEvent::ERROR, 0);
164162
Debug.print(DBG_ERROR, "Something went wrong; are you indoor? Move near a window, then reset and retry.");
165163
}
@@ -173,7 +171,6 @@ NetworkConnectionState LoRaConnectionHandler::update_handleInit()
173171

174172
NetworkConnectionState LoRaConnectionHandler::update_handleConnecting()
175173
{
176-
Debug.print(DBG_VERBOSE, "::CONNECTING");
177174
bool const network_status = _modem.joinOTAA(_appeui, _appkey);
178175
if (network_status != true)
179176
{
@@ -190,7 +187,6 @@ NetworkConnectionState LoRaConnectionHandler::update_handleConnecting()
190187
NetworkConnectionState LoRaConnectionHandler::update_handleConnected()
191188
{
192189
bool const network_status = _modem.connected();
193-
Debug.print(DBG_VERBOSE, "Connection state: %d", network_status);
194190
if (network_status != true) {
195191
execCallback(NetworkConnectionEvent::DISCONNECTED, 0);
196192

@@ -201,7 +197,6 @@ NetworkConnectionState LoRaConnectionHandler::update_handleConnected()
201197
}
202198
return NetworkConnectionState::DISCONNECTED;
203199
}
204-
Debug.print(DBG_VERBOSE, "Connected to the network");
205200
return NetworkConnectionState::CONNECTED;
206201
}
207202

@@ -221,12 +216,10 @@ NetworkConnectionState LoRaConnectionHandler::update_handleDisconnected()
221216
{
222217
if (_keep_alive)
223218
{
224-
Debug.print(DBG_VERBOSE, "CHANGING STATE TO ::INIT");
225219
return NetworkConnectionState::INIT;
226220
}
227221
else
228222
{
229-
Debug.print(DBG_VERBOSE, "Connection to the network terminated");
230223
return NetworkConnectionState::CLOSED;
231224
}
232225
}

src/Arduino_WiFiConnectionHandler.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,6 @@ void WiFiConnectionHandler::disconnect()
111111

112112
NetworkConnectionState WiFiConnectionHandler::update_handleInit()
113113
{
114-
Debug.print(DBG_VERBOSE, "::INIT");
115-
116114
#ifndef BOARD_ESP8266
117115
Debug.print(DBG_INFO, "WiFi.status(): %d", WiFi.status());
118116
if (WiFi.status() == NETWORK_HARDWARE_ERROR)
@@ -144,16 +142,13 @@ NetworkConnectionState WiFiConnectionHandler::update_handleInit()
144142

145143
NetworkConnectionState WiFiConnectionHandler::update_handleConnecting()
146144
{
147-
Debug.print(DBG_VERBOSE, "::CONNECTING");
148-
149145
#ifndef BOARD_ESP8266
150146
if (WiFi.status() != WL_CONNECTED)
151147
{
152148
WiFi.begin(_ssid, _pass);
153149
}
154150
#endif /* ifndef BOARD_ESP8266 */
155151

156-
Debug.print(DBG_VERBOSE, "WiFi.status(): %d", WiFi.status());
157152
if (WiFi.status() != NETWORK_CONNECTED)
158153
{
159154
Debug.print(DBG_ERROR, "Connection to \"%s\" failed", _ssid);
@@ -170,7 +165,6 @@ NetworkConnectionState WiFiConnectionHandler::update_handleConnecting()
170165

171166
NetworkConnectionState WiFiConnectionHandler::update_handleConnected()
172167
{
173-
Debug.print(DBG_VERBOSE, "WiFi.status(): %d", WiFi.status());
174168
if (WiFi.status() != WL_CONNECTED)
175169
{
176170
execCallback(NetworkConnectionEvent::DISCONNECTED, 0);
@@ -190,7 +184,6 @@ NetworkConnectionState WiFiConnectionHandler::update_handleConnected()
190184

191185
NetworkConnectionState WiFiConnectionHandler::update_handleGetTime()
192186
{
193-
Debug.print(DBG_VERBOSE, "NetworkConnectionState::GETTIME");
194187
#ifdef BOARD_ESP8266
195188
configTime(0, 0, "time.arduino.cc", "pool.ntp.org", "time.nist.gov");
196189
#endif
@@ -199,7 +192,6 @@ NetworkConnectionState WiFiConnectionHandler::update_handleGetTime()
199192

200193
NetworkConnectionState WiFiConnectionHandler::update_handleDisconnecting()
201194
{
202-
Debug.print(DBG_VERBOSE, "Disconnecting from \"%s\"", _ssid);
203195
WiFi.disconnect();
204196
return NetworkConnectionState::DISCONNECTED;
205197
}
@@ -215,7 +207,6 @@ NetworkConnectionState WiFiConnectionHandler::update_handleDisconnected()
215207
}
216208
else
217209
{
218-
Debug.print(DBG_VERBOSE, "Connection to \"%s\" closed", _ssid);
219210
return NetworkConnectionState::CLOSED;
220211
}
221212
}

0 commit comments

Comments
 (0)