mirror of
https://github.com/meshcore-dev/meshcore_py.git
synced 2026-04-20 22:13:49 +00:00
implemented anon binary requests
This commit is contained in:
parent
ac82eeb905
commit
3b46986dfa
5 changed files with 137 additions and 3 deletions
|
|
@ -597,10 +597,10 @@ class MessageReader:
|
|||
)
|
||||
|
||||
elif packet_type_value == PacketType.BINARY_RESPONSE.value:
|
||||
logger.debug(f"Received binary data: {data.hex()}")
|
||||
dbuf.read(1)
|
||||
tag = dbuf.read(4).hex()
|
||||
response_data = dbuf.read()
|
||||
logger.debug(f"Received binary data: {data.hex()}, tag {tag}, data {response_data.hex()}")
|
||||
|
||||
# Always dispatch generic BINARY_RESPONSE
|
||||
binary_res = {"tag": tag, "data": response_data.hex()}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue