mirror of
https://github.com/meshcore-dev/meshcore_py.git
synced 2026-04-20 22:13:49 +00:00
add support for recv_errors in STATUS_PACKETS response
This commit is contained in:
parent
01e3f21992
commit
ad7e48d028
3 changed files with 15 additions and 4 deletions
|
|
@ -53,6 +53,11 @@ async def main():
|
|||
else:
|
||||
print("📦 Packet Statistics:")
|
||||
print(json.dumps(result.payload, indent=2))
|
||||
recv_errors = result.payload.get("recv_errors")
|
||||
if recv_errors is not None:
|
||||
print(f" Receive/CRC errors (RadioLib): {recv_errors}")
|
||||
else:
|
||||
print(" Receive/CRC errors (RadioLib): not reported (legacy 26-byte frame)")
|
||||
print()
|
||||
|
||||
except Exception as e:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue