File tree 2 files changed +0
-20
lines changed
2 files changed +0
-20
lines changed Original file line number Diff line number Diff line change @@ -77,8 +77,6 @@ ArduinoIoTCloudTCP::ArduinoIoTCloudTCP()
77
77
, _mqttClient{nullptr }
78
78
, _deviceTopicOut(" " )
79
79
, _deviceTopicIn(" " )
80
- , _shadowTopicOut(" " )
81
- , _shadowTopicIn(" " )
82
80
, _dataTopicOut(" " )
83
81
, _dataTopicIn(" " )
84
82
#if OTA_ENABLED
@@ -575,14 +573,6 @@ void ArduinoIoTCloudTCP::attachThing()
575
573
return ;
576
574
}
577
575
578
- _shadowTopicIn = getTopic_shadowin ();
579
- _shadowTopicOut = getTopic_shadowout ();
580
- if (!_mqttClient.subscribe (_shadowTopicIn)) {
581
- DEBUG_ERROR (" ArduinoIoTCloudTCP::%s could not subscribe to %s" , __FUNCTION__, _shadowTopicIn.c_str ());
582
- DEBUG_ERROR (" Check your thing configuration, and press the reset button on your board." );
583
- return ;
584
- }
585
-
586
576
DEBUG_INFO (" Connected to Arduino IoT Cloud" );
587
577
DEBUG_INFO (" Thing ID: %s" , getThingId ().c_str ());
588
578
execCloudEventCallback (ArduinoIoTCloudEvent::CONNECT);
@@ -595,11 +585,6 @@ void ArduinoIoTCloudTCP::detachThing()
595
585
return ;
596
586
}
597
587
598
- if (!_mqttClient.unsubscribe (_shadowTopicIn)) {
599
- DEBUG_ERROR (" ArduinoIoTCloudTCP::%s could not unsubscribe from %s" , __FUNCTION__, _shadowTopicIn.c_str ());
600
- return ;
601
- }
602
-
603
588
DEBUG_INFO (" Disconnected from Arduino IoT Cloud" );
604
589
execCloudEventCallback (ArduinoIoTCloudEvent::DISCONNECT);
605
590
}
Original file line number Diff line number Diff line change @@ -168,8 +168,6 @@ class ArduinoIoTCloudTCP: public ArduinoIoTCloudClass
168
168
169
169
String _deviceTopicOut;
170
170
String _deviceTopicIn;
171
- String _shadowTopicOut;
172
- String _shadowTopicIn;
173
171
String _messageTopicOut;
174
172
String _messageTopicIn;
175
173
String _dataTopicOut;
@@ -188,9 +186,6 @@ class ArduinoIoTCloudTCP: public ArduinoIoTCloudClass
188
186
inline String getTopic_deviceout () { return String (" /a/d/" + getDeviceId () + " /e/o" );}
189
187
inline String getTopic_devicein () { return String (" /a/d/" + getDeviceId () + " /e/i" );}
190
188
191
- inline String getTopic_shadowout () { return ( getThingId ().length () == 0 ) ? String (" " ) : String (" /a/t/" + getThingId () + " /shadow/o" ); }
192
- inline String getTopic_shadowin () { return ( getThingId ().length () == 0 ) ? String (" " ) : String (" /a/t/" + getThingId () + " /shadow/i" ); }
193
-
194
189
inline String getTopic_messageout () { return String (" /a/d/" + getDeviceId () + " /c/up" );}
195
190
inline String getTopic_messagein () { return String (" /a/d/" + getDeviceId () + " /c/dw" );}
196
191
You can’t perform that action at this time.
0 commit comments