mirror of https://github.com/arendst/Tasmota.git
Hue emulation code optimization
This commit is contained in:
parent
b14c72e1d4
commit
4cc32407c5
|
@ -10,6 +10,7 @@
|
|||
- Add support for MaxBotix HRXL-MaxSonar ultrasonic range finders by Jon Little (#7814)
|
||||
- Add support for Romanian language translations by Augustin Marti
|
||||
- Add command ``SetOption89 0/1`` for Zigbee distinct MQTT topics per device for SENSOR, allowing retained messages (#7835)
|
||||
- Change Hue emulation code optimization
|
||||
|
||||
### 8.1.0.9 20200220
|
||||
|
||||
|
|
|
@ -55,7 +55,9 @@ String HueBridgeId(void)
|
|||
{
|
||||
String temp = WiFi.macAddress();
|
||||
temp.replace(":", "");
|
||||
String bridgeid = temp.substring(0, 6) + "FFFE" + temp.substring(6);
|
||||
String bridgeid = temp.substring(0, 6);
|
||||
bridgeid += "FFFE";
|
||||
bridgeid += temp.substring(6);
|
||||
return bridgeid; // 5CCF7FFFFE139F3D
|
||||
}
|
||||
|
||||
|
@ -83,16 +85,17 @@ void HueRespondToMSearch(void)
|
|||
char response[320];
|
||||
snprintf_P(response, sizeof(response), HUE_RESPONSE, WiFi.localIP().toString().c_str(), HueBridgeId().c_str());
|
||||
int len = strlen(response);
|
||||
|