Skip to content

Commit d0cbca0

Browse files
committed
There is no more distinction between not configured and not attached
1 parent a498327 commit d0cbca0

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

src/ArduinoIoTCloud.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,7 @@ class ArduinoIoTCloudClass
100100
inline void clrThingIdOutdatedFlag() { _thing_id_outdated = false ; }
101101
inline bool getThingIdOutdatedFlag() { return _thing_id_outdated; }
102102

103-
inline bool deviceNotAttached() { return _thing_id == "null"; }
104-
inline bool deviceNotConfigured() { return _thing_id == ""; }
103+
inline bool deviceNotAttached() { return _thing_id == ""; }
105104

106105
inline ConnectionHandler * getConnection() { return _connection; }
107106

src/ArduinoIoTCloudTCP.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -511,15 +511,6 @@ ArduinoIoTCloudTCP::State ArduinoIoTCloudTCP::handle_CheckDeviceConfig()
511511

512512
updateThingTopics();
513513

514-
if (deviceNotConfigured())
515-
{
516-
/* maybe we have only missed the thing_id property...
517-
* unsubsribe and resubscribe immediately to trigger a new configuration command
518-
*/
519-
_mqttClient.unsubscribe(_deviceTopicIn);
520-
return State::SubscribeDeviceTopic;
521-
}
522-
523514
if (deviceNotAttached())
524515
{
525516
/* start long timeout counter

0 commit comments

Comments
 (0)