mirror of
https://github.com/lumapu/ahoy.git
synced 2025-05-03 20:25:54 +02:00
updated mqtt counter
This commit is contained in:
parent
ef72fe9a40
commit
56b8096bed
1 changed files with 1 additions and 1 deletions
|
@ -53,7 +53,6 @@ class mqtt {
|
||||||
char top[64];
|
char top[64];
|
||||||
snprintf(top, 64, "%s/%s", mCfg->topic, topic);
|
snprintf(top, 64, "%s/%s", mCfg->topic, topic);
|
||||||
sendMsg2(top, msg, false);
|
sendMsg2(top, msg, false);
|
||||||
mTxCnt++;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void sendMsg2(const char *topic, const char *msg, boolean retained) {
|
void sendMsg2(const char *topic, const char *msg, boolean retained) {
|
||||||
|
@ -63,6 +62,7 @@ class mqtt {
|
||||||
if(mClient->connected())
|
if(mClient->connected())
|
||||||
mClient->publish(topic, msg, retained);
|
mClient->publish(topic, msg, retained);
|
||||||
}
|
}
|
||||||
|
mTxCnt++;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool isConnected(bool doRecon = false) {
|
bool isConnected(bool doRecon = false) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue