Fix: ping Miotiq command=0x02 pour retrocompat avec capteurs deployés (byte 9 = 0x01)
Les capteurs en production envoient 0x01 sur le byte 9 (ancien protocol_version). Cote serveur: 0x00 et 0x01 = data normal, 0x02 = ping test. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -387,7 +387,7 @@ class SensorPayload:
|
||||
self.payload[68] = status & 0xFF
|
||||
|
||||
def set_command(self, value):
|
||||
"""Set command byte (byte 9): 0x00 = normal data, 0x01 = ping test"""
|
||||
"""Set command byte (byte 9): 0x00 = normal data, 0x01 = legacy (ancien protocol_version), 0x02 = ping test"""
|
||||
self.payload[9] = value & 0xFF
|
||||
|
||||
def set_firmware_version(self, version_str):
|
||||
|
||||
Reference in New Issue
Block a user