From cc201c490cb0dac9f2a4e2fb7adf48deb8a4b9aa Mon Sep 17 00:00:00 2001 From: Charles R Date: Tue, 13 Oct 2020 22:17:40 +0200 Subject: [PATCH] feat: add device_id as unique identifier (#776) --- main/ZgatewayPilight.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/ZgatewayPilight.ino b/main/ZgatewayPilight.ino index 2283c5e..d3f4aa4 100644 --- a/main/ZgatewayPilight.ino +++ b/main/ZgatewayPilight.ino @@ -52,7 +52,7 @@ void pilightCallback(const String& protocol, const String& message, int status, if (!strlen(device_id)) { // deviceID returned from Pilight is only extracted from id field // but some device may use another name as unique identifier - char* choices[] = {"key", "unit", "systemcode", "unitcode", "programcode"}; + char* choices[] = {"key", "unit", "device_id", "systemcode", "unitcode", "programcode"}; for (uint8_t i = 0; i < 5; i++) { if (msg[choices[i]]) {