mirror of
https://github.com/rstrouse/ESPSomfy-RTS.git
synced 2025-12-13 11:02:12 +01:00
published host, ipAddress, fwVersion, and serverId to MQTT #167
This commit is contained in:
parent
31dd12d90f
commit
bbebc22bb9
2 changed files with 4 additions and 0 deletions
4
MQTT.cpp
4
MQTT.cpp
|
|
@ -193,6 +193,10 @@ bool MQTTClass::connect() {
|
||||||
Serial.print("Successfully connected MQTT client ");
|
Serial.print("Successfully connected MQTT client ");
|
||||||
Serial.println(this->clientId);
|
Serial.println(this->clientId);
|
||||||
this->publish("status", "online", true);
|
this->publish("status", "online", true);
|
||||||
|
this->publish("ipAddress", settings.IP.ip.toString().c_str(), true);
|
||||||
|
this->publish("host", settings.hostname, true);
|
||||||
|
this->publish("firmware", settings.fwVersion, true);
|
||||||
|
this->publish("serverId", settings.serverId, true);
|
||||||
somfy.publish();
|
somfy.publish();
|
||||||
this->subscribe("shades/+/target/set");
|
this->subscribe("shades/+/target/set");
|
||||||
this->subscribe("shades/+/tiltTarget/set");
|
this->subscribe("shades/+/tiltTarget/set");
|
||||||
|
|
|
||||||
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue