[DISC] reorder UVI for correct auto-discovery (#1968)

To avoid auto-discovery issues due to substring comparison at
https://github.com/1technophile/OpenMQTTGateway/blob/development/main/ZgatewayRTL_433.ino#L128

strcmp instead of substring only strstr
This commit is contained in:
DigiH authored and GitHub committed 2024-06-17 13:37:39 -05:00
1 parent 57d1105ba8
commit 4bb7c5502d
2 files changed
+7 -2

No files matched your search

+1 -1
View File
@@ -82,7 +82,7 @@ struct RTL_433device {
bool isDisc;
};
const char parameters[53][4][24] = {
const char parameters[51][4][24] = {
// RTL_433 key, name, unit, device_class
{"alarm", "Alarm", "", ""},
{"battery_mV", "Battery Voltage", "mV", "voltage"},