File tree Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 11name =ArduinoIoTCloud
2- version =0.4 .1
2+ version =0.5 .1
33author =Arduino
44maintainer =Arduino <info@arduino.cc>
55sentence =This library allows to connect to the Arduino IoT Cloud service.
Original file line number Diff line number Diff line change @@ -113,7 +113,7 @@ void GSMConnectionManager::changeConnectionState(NetworkConnectionState _newStat
113113 newInterval = CHECK_INTERVAL_DISCONNECTED;
114114 break ;
115115 case CONNECTION_STATE_ERROR:
116- debugMessage (" GPRS attach failed\n Make sure the antenna is connected" , 0 );
116+ debugMessage (" GPRS attach failed\n Make sure the antenna is connected and reset your board. " , 0 );
117117 break ;
118118 }
119119 connectionTickTimeInterval = newInterval;
@@ -137,6 +137,7 @@ void GSMConnectionManager::check() {
137137 sprintf (msgBuffer, " GPRS.attachGPRS(): %d" , networkStatus);
138138 debugMessage (msgBuffer, 3 );
139139 if (networkStatus == GSM3_NetworkStatus_t::ERROR) {
140+ // NO FURTHER ACTION WILL FOLLOW THIS
140141 changeConnectionState (CONNECTION_STATE_ERROR);
141142 return ;
142143 }
Original file line number Diff line number Diff line change @@ -93,6 +93,10 @@ void WiFiConnectionManager::changeConnectionState(NetworkConnectionState _newSta
9393 debugMessage (" Attempting reconnection" , 0 );
9494 newInterval = CHECK_INTERVAL_DISCONNECTED;
9595 break ;
96+ case CONNECTION_STATE_ERROR:
97+ debugMessage (" WiFi Hardware failure.\n Make sure you are using a WiFi enabled board/shield." , 0 );
98+ debugMessage (" Then reset and retry." , 0 );
99+ break ;
96100 }
97101 connectionTickTimeInterval = newInterval;
98102 lastConnectionTickTime = millis ();
@@ -111,8 +115,7 @@ void WiFiConnectionManager::check() {
111115 sprintf (msgBuffer, " WiFi.status(): %d" , networkStatus);
112116 debugMessage (msgBuffer, 2 );
113117 if (networkStatus == NETWORK_HARDWARE_ERROR) {
114- debugMessage (" WiFi Hardware not available\n Make sure you are using a WiFi enabled board/shield" , 0 );
115- // don't continue:
118+ // NO FURTHER ACTION WILL FOLLOW THIS
116119 changeConnectionState (CONNECTION_STATE_ERROR);
117120 lastConnectionTickTime = now;
118121 return ;
You can’t perform that action at this time.
0 commit comments