aboutsummaryrefslogtreecommitdiff
path: root/parrot_zik
diff options
context:
space:
mode:
authorneodarz <neodarz@neodarz.net>2019-05-05 13:00:05 +0200
committerneodarz <neodarz@neodarz.net>2019-05-05 13:00:05 +0200
commitef754651e828e246129f9b846b8323d24f0f6e00 (patch)
tree1575f203b0bd63b57aeb87dd844db88c20bae7e4 /parrot_zik
parent2b3c72247c59e1a8a8c423333ab0fa6b9dcd2d59 (diff)
downloadpyParrotZikTCP-ef754651e828e246129f9b846b8323d24f0f6e00.tar.xz
pyParrotZikTCP-ef754651e828e246129f9b846b8323d24f0f6e00.zip
Add some documentation of how headset API work
Diffstat (limited to 'parrot_zik')
-rw-r--r--parrot_zik/message.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/parrot_zik/message.py b/parrot_zik/message.py
index 822e057..3a34e8e 100644
--- a/parrot_zik/message.py
+++ b/parrot_zik/message.py
@@ -1,4 +1,9 @@
class Message:
+ """
+ The headset detect new command with the following schema:
+ \x00<(message size + 3) in hex>\x80<message in hex>
+ It must be keeped in bytes because \x80 is not in the ASCII table.
+ """
def __init__(self, resource, method, arg=None):
self.method = method
self.resource = resource