Skip to content

Conversation

@tbb98
Copy link
Contributor

@tbb98 tbb98 commented Mar 7, 2025

As mentioned by @mofosyne at issue #72

Comment on lines +1 to +9
# Packet Structure

| Field | Size (bytes) | Description |
|--------------|------------------------|-------------|
| `header` | 1 | Contains routing type, payload type, and payload version. |
| `payload_len` | 2 | Length of the payload in bytes. |
| `path_len` | 2 | Length of the path field in bytes. |
| `path` | `MAX_PATH_SIZE` | Stores the routing path if applicable. |
| `payload` | `MAX_PACKET_PAYLOAD` | The actual data being transmitted. |

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not correct. The actual over the air format is:

Field Size (bytes) Description
header 1 Contains routing type, payload type, and payload version.
path_len 1 (uint8) Length of the path field in bytes.
path MAX_PATH_SIZE Stores the routing path if applicable.
payload MAX_PACKET_PAYLOAD The actual data being transmitted.

See packet serialization here:

https://github.com/ripplebiz/MeshCore/blob/main/src/Packet.cpp#L24-L31

@mattsains
Copy link
Contributor

Can we get this PR to a mergeable state @tbb98 ? It looks like you could just incorporate the feedback directly and then we’re done. I’d do it myself but I don’t want to take undeserved credit for your work

@tbb98
Copy link
Contributor Author

tbb98 commented Jun 5, 2025

Hello @mattsains !

Sorry, I don't have much time for this at the moment. We rolling open source, I don't care about the credit, only the end product, so I'd be really happy if you do it! :)

@ripplebiz ripplebiz merged commit 5089268 into meshcore-dev:main Jun 6, 2025
@mofosyne
Copy link

mofosyne commented Jun 7, 2025

Thanks for the correction to the packet structure @mattsains in 9d53fc2

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.

5 participants