File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -244,7 +244,7 @@ void ArduinoIoTCloudTCP::update()
244244 * the mqttClient. The state can be reached only after the mqttClient is connected to
245245 * the broker.
246246 */
247- if (_state <= State::Init ){
247+ if (_state <= State::ConnectPhy ){
248248 return ;
249249 }
250250
@@ -264,7 +264,7 @@ void ArduinoIoTCloudTCP::update()
264264
265265int ArduinoIoTCloudTCP::connected ()
266266{
267- if (_state <= State::Init ) {
267+ if (_state <= State::ConnectPhy ) {
268268 return 0 ;
269269 }
270270 return _mqttClient.connected ();
@@ -281,7 +281,7 @@ void ArduinoIoTCloudTCP::printDebugInfo()
281281}
282282
283283void ArduinoIoTCloudTCP::disconnect () {
284- if (_state == State::ConfigPhy || _state == State::Init ) {
284+ if (_state <= State::ConnectPhy ) {
285285 return ;
286286 }
287287
You can’t perform that action at this time.
0 commit comments