Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[Bug]: lora.ignore_incoming crash (bytes→int), duplicates, and ID format inconsistency #833

Copy link
Copy link
@NillRudd

Description

@NillRudd
Issue body actions

Config

Python: 3.10
meshtastic-python: 2.7.3
Radios, 2x Heltec V3s, firmware_version: 2.7.10.94d4bdf05

Description

While managing the LoRa ignore list from the CLI:

meshtastic --set lora.ignore_incoming can crash with Aborting due to: 'bytes' object cannot be interpreted as an integer.

Adding the same node ID multiple times can result in duplicates in lora.ignore_incoming.

Node IDs aren’t consistently accepted across decimal, !hex, and 0xhex formats.

Reproduction

Example IDs

ID_DEC=2086287328
ID_HEX_BANG=!7c5a37e0
ID_HEX_0X=0x7c5a37e0

1) Crash / empty add

meshtastic --port /dev/cu.usbserial-4 --set lora.ignore_incoming "$ID_DEC"

Sometimes prints: "Adding '' to the ignore_incoming list"
Then: Aborting due to: 'bytes' object cannot be interpreted as an integer

2) Duplicates

meshtastic --port /dev/cu.usbserial-4 --set lora.ignore_incoming "$ID_DEC"
meshtastic --port /dev/cu.usbserial-4 --set lora.ignore_incoming "$ID_DEC"
meshtastic --port /dev/cu.usbserial-4 --get lora.ignore_incoming

This will then sometimes show repeated entries

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.