Allow product information to be specified at build time

This commit is contained in:
Christophe Gagnier
2024-02-07 02:09:03 -05:00
parent 7eae8f68d8
commit ed2950f73b
5 changed files with 26 additions and 8 deletions

View File

@@ -98,8 +98,8 @@ private:
JsonObject device = doc.createNestedObject(F("device")); // attach the sensor to the same device
device[F("name")] = serverDescription;
device[F("identifiers")] = "wled-sensor-" + String(mqttClientID);
device[F("manufacturer")] = F("WLED");
device[F("model")] = F("FOSS");
device[F("manufacturer")] = F(WLED_BRAND);
device[F("model")] = F(WLED_PRODUCT_NAME);
device[F("sw_version")] = versionString;
String temp;