Skip to content

Commit a952097

Browse files
committed
Subscribe to OTA in topic which is used to receive the update binary from the MQTT server
1 parent 3bcf2b1 commit a952097

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/ArduinoIoTCloudTCP.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,7 @@ int ArduinoIoTCloudTCP::connect()
219219
if (!_mqttClient->connect(_brokerAddress.c_str(), _brokerPort)) return CONNECT_FAILURE;
220220
if (_mqttClient->subscribe(_stdinTopic) == 0) return CONNECT_FAILURE_SUBSCRIBE;
221221
if (_mqttClient->subscribe(_dataTopicIn) == 0) return CONNECT_FAILURE_SUBSCRIBE;
222+
if (_mqttClient->subscribe(_ota_topic_in) == 0) return CONNECT_FAILURE_SUBSCRIBE;
222223

223224
if (_shadowTopicIn != "")
224225
{

0 commit comments

Comments
 (0)