master sends message on mqtt when online
This commit is contained in:
@ -32,7 +32,7 @@ struct device {
|
|||||||
};
|
};
|
||||||
|
|
||||||
struct device devices[] = {
|
struct device devices[] = {
|
||||||
{0x01, "althead"}
|
{0x00, "althead"}
|
||||||
};
|
};
|
||||||
|
|
||||||
int numDevices = -1;
|
int numDevices = -1;
|
||||||
@ -96,6 +96,7 @@ void setup() {
|
|||||||
while (1);
|
while (1);
|
||||||
} else {
|
} else {
|
||||||
Serial.println("MQTT connected");
|
Serial.println("MQTT connected");
|
||||||
|
sendMqttMessage(MQTT_SIM_DEVICE_TOPIC, "Master online");
|
||||||
}
|
}
|
||||||
|
|
||||||
// subscribe to MQTT topic
|
// subscribe to MQTT topic
|
||||||
|
Reference in New Issue
Block a user