From cdfeb822f76a904ae4665b2f6a7bcbb2ce44924d Mon Sep 17 00:00:00 2001 From: Marco Schuster Date: Tue, 21 Apr 2026 15:09:30 +0200 Subject: [PATCH 1/2] Update payloads.md Add 0x00 / ADV_TYPE_NONE to advert appdata flags See https://github.com/meshcore-dev/MeshCore/blob/dev/src/helpers/AdvertDataHelpers.h#L7 --- docs/payloads.md | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/docs/payloads.md b/docs/payloads.md index 7745ac61ba..30cc38355b 100644 --- a/docs/payloads.md +++ b/docs/payloads.md @@ -46,16 +46,17 @@ Appdata Appdata Flags -| Value | Name | Description | -|--------|----------------|---------------------------------------| -| `0x01` | is chat node | advert is for a chat node | -| `0x02` | is repeater | advert is for a repeater | -| `0x03` | is room server | advert is for a room server | -| `0x04` | is sensor | advert is for a sensor server | -| `0x10` | has location | appdata contains lat/long information | -| `0x20` | has feature 1 | Reserved for future use. | -| `0x40` | has feature 2 | Reserved for future use. | -| `0x80` | has name | appdata contains a node name | +| Value | Name | Description | +|--------|----------------|----------------------------------------| +| `0x00` | no node type | advert is for an unspecified node type | +| `0x01` | is chat node | advert is for a chat node | +| `0x02` | is repeater | advert is for a repeater | +| `0x03` | is room server | advert is for a room server | +| `0x04` | is sensor | advert is for a sensor server | +| `0x10` | has location | appdata contains lat/long information | +| `0x20` | has feature 1 | Reserved for future use. | +| `0x40` | has feature 2 | Reserved for future use. | +| `0x80` | has name | appdata contains a node name | # Acknowledgement From 3fe060dc283a1da8bdeb8936f4d28a2976a08ae3 Mon Sep 17 00:00:00 2001 From: Marco Schuster Date: Tue, 21 Apr 2026 20:59:42 +0200 Subject: [PATCH 2/2] Update payloads.md Add maximum length information for node name in advert field --- docs/payloads.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/payloads.md b/docs/payloads.md index 30cc38355b..4c580d9479 100644 --- a/docs/payloads.md +++ b/docs/payloads.md @@ -35,14 +35,14 @@ This kind of payload notifies receivers that a node exists, and gives informatio Appdata -| Field | Size (bytes) | Description | -|---------------|-----------------|-------------------------------------------------------| -| flags | 1 | specifies which of the fields are present, see below | -| latitude | 4 (optional) | decimal latitude multiplied by 1000000, integer | -| longitude | 4 (optional) | decimal longitude multiplied by 1000000, integer | -| feature 1 | 2 (optional) | reserved for future use | -| feature 2 | 2 (optional) | reserved for future use | -| name | rest of appdata | name of the node | +| Field | Size (bytes) | Description | +|---------------|-----------------|------------------------------------------------------------| +| flags | 1 | specifies which of the fields are present, see below | +| latitude | 4 (optional) | decimal latitude multiplied by 1000000, integer | +| longitude | 4 (optional) | decimal longitude multiplied by 1000000, integer | +| feature 1 | 2 (optional) | reserved for future use | +| feature 2 | 2 (optional) | reserved for future use | +| name | 0-32 | name of the node (capped at 32 bytes/MAX_ADVERT_DATA_SIZE) | Appdata Flags