Sfoglia il codice sorgente

correct response header

Chris Mullins 8 anni fa
parent
commit
1dc91021d0
1 ha cambiato i file con 2 aggiunte e 3 eliminazioni
  1. 2 3
      lib/Udp/V6MiLightUdpServer.cpp

+ 2 - 3
lib/Udp/V6MiLightUdpServer.cpp

@@ -4,8 +4,7 @@
   
 uint8_t V6MiLightUdpServer::START_SESSION_COMMAND[] = {
   0x20, 0x00, 0x00, 0x00, 0x16, 0x02, 0x62, 0x3A, 0xD5, 0xED, 0xA3, 0x01, 0xAE, 
-  0x08, 0x2D, 0x46, 0x61, 0x41, 0xA7, 0xF6, 0xDC, 0xAF, 0xD3, 0xE6, 0x00, 0x00,
-  0x1E
+  0x08, 0x2D, 0x46, 0x61, 0x41, 0xA7, 0xF6, 0xDC, 0xAF
 };
 
 uint8_t V6MiLightUdpServer::START_SESSION_RESPONSE[] = {
@@ -214,7 +213,7 @@ void V6MiLightUdpServer::handleCommand(
 }
 
 void V6MiLightUdpServer::handleHeartbeat(uint16_t sessionId) {
-  char header[] = { 0xD0, 0x00, 0x00, 0x00, 0x07 };
+  char header[] = { 0xD8, 0x00, 0x00, 0x00, 0x07 };
   memcpy(responseBuffer, header, size(header));
   WiFi.macAddress(responseBuffer+5);
   responseBuffer[11] = 0;