mirror of
https://gitlab.com/fabinfra/fabhardware/fablock.git
synced 2025-03-12 14:41:46 +01:00
Added: Publish ID on connect
This commit is contained in:
parent
c1e20c122b
commit
5de75eb6bb
@ -92,6 +92,10 @@ void reconnect()
|
||||
client.subscribe(topic_recv);
|
||||
snprintf (topic_recv, TOPIC_BUFFER_SIZE, "fablock/%05d/+/identify", FABLOCKID);
|
||||
client.subscribe(topic_recv);
|
||||
|
||||
char id[6] = "00000";
|
||||
sprintf(id, "%05d", FABLOCKID);
|
||||
mqtt->publish("fablock", id);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user