Browse Source
Merge pull request #153 from fila612/dev_private
Add MF & MDL for MQTT (HASSIO-Discov.) - man. Ver.
pull/157/head
lumapu
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
0 deletions
-
tools/esp8266/app.cpp
|
@ -1153,6 +1153,8 @@ void app::sendMqttDiscoveryConfig(void) { |
|
|
deviceDoc["name"] = iv->name; |
|
|
deviceDoc["name"] = iv->name; |
|
|
deviceDoc["ids"] = String(iv->serial.u64, HEX); |
|
|
deviceDoc["ids"] = String(iv->serial.u64, HEX); |
|
|
deviceDoc["cu"] = F("http://") + String(WiFi.localIP().toString()); |
|
|
deviceDoc["cu"] = F("http://") + String(WiFi.localIP().toString()); |
|
|
|
|
|
deviceDoc["mf"] = "Hoymiles"; |
|
|
|
|
|
deviceDoc["mdl"] = iv->name; |
|
|
JsonObject deviceObj = deviceDoc.as<JsonObject>(); |
|
|
JsonObject deviceObj = deviceDoc.as<JsonObject>(); |
|
|
DynamicJsonDocument doc(384); |
|
|
DynamicJsonDocument doc(384); |
|
|
|
|
|
|
|
|