diff options
Diffstat (limited to 'src/home/mqtt/payload/relay.py')
-rw-r--r-- | src/home/mqtt/payload/relay.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/home/mqtt/payload/relay.py b/src/home/mqtt/payload/relay.py index debc2c8..1a38201 100644 --- a/src/home/mqtt/payload/relay.py +++ b/src/home/mqtt/payload/relay.py @@ -62,6 +62,12 @@ class PowerPayload(MQTTPayload): state: bool +class OTAResultPayload(MQTTPayload): + FORMAT = '=BB' + result: int + error_code: int + + class OTAPayload(MQTTPayload): secret: str filename: str @@ -87,3 +93,4 @@ class OTAPayload(MQTTPayload): # secret = buf[:12].decode() # filename = buf[12:].decode() # return OTAPayload(secret=secret, filename=filename) + |