Skip to content

Commit 16bca0b

Browse files
committed
Minor fixes
1 parent b91f709 commit 16bca0b

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

keywords.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ getFirmwareRevision KEYWORD2
1616
getIMEI KEYWORD2
1717
getIMSI KEYWORD2
1818
getICCID KEYWORD2
19-
showDiagnosticInfo KEYWORD2
2019
getOperator KEYWORD2
2120
setOperator KEYWORD2
2221
reboot KEYWORD2

src/AllThingsTalk_LTEM.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,13 @@ void AllThingsTalk_LTEM::maintainMqtt() {
171171
}
172172

173173
bool AllThingsTalk_LTEM::disconnect() {
174-
return r4x.disconnect();
174+
if (r4x.disconnect()) {
175+
debug("Disconnected from LTE-M Network and AllThingsTalk");
176+
return true;
177+
} else {
178+
debug("Failed to disconnect from the network");
179+
return false;
180+
}
175181
}
176182

177183
bool AllThingsTalk_LTEM::isConnected() {

0 commit comments

Comments
 (0)