json/info: brand and product configurable by compile variables

For MM builds brand = WLEDMM
Will be used in WLED-Native - by Moustachauve

Changed in bh1750, bme280, pir, json.cpp and wled.h
This commit is contained in:
Ewoud
2023-10-15 21:43:55 +02:00
parent 6d9af29042
commit 294a872462
6 changed files with 28 additions and 10 deletions

View File

@@ -163,8 +163,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); //WLEDMM + Moustachauve/Wled-Native
device[F("model")] = F(WLED_PRODUCT_NAME); //WLEDMM + Moustachauve/Wled-Native
device[F("sw_version")] = versionString;
String temp;