Add identify function.

This commit is contained in:
Andrius Štikonas 2020-11-22 00:37:53 +00:00
parent fc9bc83b73
commit 5b590f577a
2 changed files with 13 additions and 1 deletions

View File

@ -334,3 +334,15 @@ class NeoHub:
result = await self._send(message, reply)
return result
async def identify(self):
"""
Flashes red LED light
"""
message = {"IDENTIFY": 0}
reply = {"result": "flashing led"}
result = await self._send(message, reply)
return result

View File

@ -15,7 +15,7 @@ async def run():
hub = neohub.NeoHub()
await hub.connect()
system = await hub.get_system()
result = await hub.set_ntp(True)
result = await hub.identify()
print(result)