Add function to set LED visibility
This commit is contained in:
parent
f488869f3d
commit
3755f26081
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