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
parent
commit
d5d6c7419e
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      tools/esp8266/app.cpp

2
tools/esp8266/app.cpp

@ -1153,6 +1153,8 @@ void app::sendMqttDiscoveryConfig(void) {
deviceDoc["name"] = iv->name;
deviceDoc["ids"] = String(iv->serial.u64, HEX);
deviceDoc["cu"] = F("http://") + String(WiFi.localIP().toString());
deviceDoc["mf"] = "Hoymiles";
deviceDoc["mdl"] = iv->name;
JsonObject deviceObj = deviceDoc.as<JsonObject>();
DynamicJsonDocument doc(384);

Loading…
Cancel
Save