mirror of
https://github.com/lumapu/ahoy.git
synced 2025-05-13 00:46:38 +02:00
MQTT last will with uptime
This commit is contained in:
parent
7f4417716d
commit
ba91e905ce
2 changed files with 10 additions and 4 deletions
|
@ -834,8 +834,10 @@ void app::setupMqtt(void) {
|
|||
|
||||
if(mMqttActive) {
|
||||
mMqtt.sendMsg("version", mVersion);
|
||||
if(mMqtt.isConnected())
|
||||
if(mMqtt.isConnected()) {
|
||||
mMqtt.sendMsg("device", mSysConfig.deviceName);
|
||||
mMqtt.sendMsg("uptime", "0");
|
||||
}
|
||||
|
||||
/*char topic[30];
|
||||
for(uint8_t i = 0; i < MAX_NUM_INVERTERS; i ++) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue