Add function to read current plug config #7

Merged
sqozz merged 3 commits from features/config into master 2020-05-08 19:50:17 +02:00
1 changed files with 7 additions and 0 deletions
Showing only changes of commit 80c0c5dd4b - Show all commits

View File

@ -45,6 +45,13 @@ class SEMSocket():
msg = self.BTLEMessage(self, cmd, payload)
msg.send()
def getSN(self):
# 15, 5, 17, 0, 0, 0, 18, -1, -1
cmd = bytearray([0x11])
payload = bytearray([0x00, 0x00, 0x00])
msg = self.BTLEMessage(self, cmd, payload)
msg.send()
def setStatus(self, status):
# 0f 06 03 00 01 00 00 05 ff ff -> on
# 0f 06 03 00 00 00 00 04 ff ff -> off