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 52a24d6 + 4e7860d commit 2a96cbcCopy full SHA for 2a96cbc
src/ArduinoIoTCloudTCP.cpp
@@ -244,7 +244,7 @@ void ArduinoIoTCloudTCP::update()
244
* the mqttClient. The state can be reached only after the mqttClient is connected to
245
* the broker.
246
*/
247
- if(_state <= State::Init){
+ if(_state <= State::ConnectPhy){
248
return;
249
}
250
@@ -264,7 +264,7 @@ void ArduinoIoTCloudTCP::update()
264
265
int ArduinoIoTCloudTCP::connected()
266
{
267
- if (_state <= State::Init) {
+ if (_state <= State::ConnectPhy) {
268
return 0;
269
270
return _mqttClient.connected();
@@ -281,7 +281,7 @@ void ArduinoIoTCloudTCP::printDebugInfo()
281
282
283
void ArduinoIoTCloudTCP::disconnect() {
284
- if (_state == State::ConfigPhy || _state == State::Init) {
285
286
287
0 commit comments