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.
1 parent 6da1e21 commit bf01c01Copy full SHA for bf01c01
src/ArduinoIoTCloudTCP.cpp
@@ -268,7 +268,11 @@ ArduinoIoTCloudTCP::State ArduinoIoTCloudTCP::handle_SubscribeMqttTopics()
268
269
DBG_VERBOSE("Connected to Arduino IoT Cloud");
270
execCloudEventCallback(ArduinoIoTCloudEvent::CONNECT);
271
- return State::RequestLastValues;
+
272
+ if (_shadowTopicIn != "")
273
+ return State::RequestLastValues;
274
+ else
275
+ return State::Connected;
276
}
277
278
ArduinoIoTCloudTCP::State ArduinoIoTCloudTCP::handle_RequestLastValues()
0 commit comments