Skip to content

Conversation

@Nikotine1
Copy link

@Nikotine1 Nikotine1 commented Jan 14, 2026

MAX_PACKET_PAYLOAD must be 184, see (https://github.com/meshcore-dev/MeshCore/blob/main/docs/packet_structure.md).

MAX_ADVERT_DATA_SIZE must be 32. Even though the protocol isn't clear (https://github.com/meshcore-dev/MeshCore/blob/main/docs/payloads.md), Meshcore imposes a limit of 32 bytes (https://github.com/meshcore-dev/MeshCore/blob/main/src/MeshCore.h).

This fixes pyMC_core sending adverts longer than 32 bytes which get dropped by other repeaters or the Companion App.
With the current limits, the following situations will lead to an advert showing up in the RX log of the companion app, but silently dropped:

  • A node name longer than 23 characters with GPS location included
  • A node name longer than 31 characters without GPS location

The same happens with Letsmesh.

@Nikotine1 Nikotine1 changed the base branch from main to dev January 14, 2026 20:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant