mirror of
https://gitlab.com/fabinfra/fabhardware/fabpel.git
synced 2025-03-12 06:31:46 +01:00
Added: Publish ID on connect
This commit is contained in:
parent
0b60b69911
commit
72bfe406ce
@ -279,6 +279,10 @@ void reconnect()
|
||||
client.subscribe(topic_recv);
|
||||
snprintf (topic_recv, TOPIC_BUFFER_SIZE, "fabpel/%05d/clear", FABPELID);
|
||||
client.subscribe(topic_recv);
|
||||
|
||||
char id[6] = "00000";
|
||||
sprintf(id, "%05d", FABPELID);
|
||||
mqtt->publish("fabpel", id);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user