Add function to set LED visibility #17
1 changed files with 8 additions and 0 deletions
|
@ -113,6 +113,14 @@ class SEMSocket():
|
|||
success = msg.send()
|
||||
return success
|
||||
|
||||
def enableLED(self, status):
|
||||
cmd = bytearray([0x0f])
|
||||
payload = bytearray([0x00, 0x05, status, 0x00, 0x00, 0x00, 0x00])
|
||||
msg = self.BTLEMessage(self, cmd, payload)
|
||||
|
||||
success = msg.send()
|
||||
return success
|
||||
|
||||
@property
|
||||
def name(self):
|
||||
self._name = self._name_char.read().decode("UTF-8")
|
||||
|
|
Loading…
Reference in a new issue