Skip to content

Commit 62a6710

Browse files
committed
We can safely send another subscribe request without unsubscribe
1 parent dee3570 commit 62a6710

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/ArduinoIoTCloudTCP.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -382,10 +382,7 @@ ArduinoIoTCloudTCP::State ArduinoIoTCloudTCP::handle_SubscribeDeviceTopic()
382382
if (is_retry_attempt)
383383
{
384384
/* Configuration not received or device not attached to a valid thing. Try to resubscribe */
385-
if (_mqttClient.unsubscribe(_deviceTopicIn))
386-
{
387-
DEBUG_ERROR("ArduinoIoTCloudTCP::%s device waiting for valid thing_id %d", __FUNCTION__, _time_service.getTime());
388-
}
385+
DEBUG_ERROR("ArduinoIoTCloudTCP::%s device waiting for valid thing_id %d", __FUNCTION__, _time_service.getTime());
389386
}
390387

391388
DEBUG_VERBOSE("ArduinoIoTCloudTCP::%s request device configuration %d", __FUNCTION__, _time_service.getTime());

0 commit comments

Comments
 (0)