Skip to content

Commit 11ca52a

Browse files
committed
MCU8MASS-1943 Remove AT command call in callback for MQTT connection status
1 parent 605288f commit 11ca52a

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

src/mqtt_client.cpp

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -176,11 +176,6 @@ static void internalConnectedCallback(char* urc_data) {
176176
connected_to_broker = false;
177177
LedCtrl.off(Led::CON, true);
178178

179-
SequansController.writeBytes((uint8_t*)MQTT_DISCONNECT,
180-
strlen(MQTT_DISCONNECT),
181-
true);
182-
SequansController.clearReceiveBuffer();
183-
184179
if (disconnected_callback != NULL) {
185180
disconnected_callback();
186181
}
@@ -189,11 +184,7 @@ static void internalConnectedCallback(char* urc_data) {
189184

190185
static void internalDisconnectCallback(char* urc_data) {
191186
connected_to_broker = false;
192-
193-
SequansController.writeBytes((uint8_t*)MQTT_DISCONNECT,
194-
strlen(MQTT_DISCONNECT),
195-
true);
196-
SequansController.clearReceiveBuffer();
187+
LedCtrl.off(Led::CON, true);
197188

198189
if (disconnected_callback != NULL) {
199190
disconnected_callback();

0 commit comments

Comments
 (0)