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()
244
244
* the mqttClient. The state can be reached only after the mqttClient is connected to
245
245
* the broker.
246
246
*/
247
- if (_state <= State::Init ){
247
+ if (_state <= State::ConnectPhy ){
248
248
return ;
249
249
}
250
250
@@ -264,7 +264,7 @@ void ArduinoIoTCloudTCP::update()
264
264
265
265
int ArduinoIoTCloudTCP::connected ()
266
266
{
267
- if (_state <= State::Init ) {
267
+ if (_state <= State::ConnectPhy ) {
268
268
return 0 ;
269
269
}
270
270
return _mqttClient.connected ();
@@ -281,7 +281,7 @@ void ArduinoIoTCloudTCP::printDebugInfo()
281
281
}
282
282
283
283
void ArduinoIoTCloudTCP::disconnect () {
284
- if (_state == State::ConfigPhy || _state == State::Init ) {
284
+ if (_state <= State::ConnectPhy ) {
285
285
return ;
286
286
}
287
287
You can’t perform that action at this time.
0 commit comments