@@ -212,6 +212,9 @@ typedef enum _meshtastic_HardwareModel {
212212 meshtastic_HardwareModel_MS24SF1 = 82 ,
213213 /* Lilygo TLora-C6 with the new ESP32-C6 MCU */
214214 meshtastic_HardwareModel_TLORA_C6 = 83 ,
215+ /* WisMesh Tap
216+ RAK-4631 w/ TFT in injection modled case */
217+ meshtastic_HardwareModel_WISMESH_TAP = 84 ,
215218 /* ------------------------------------------------------------------------------------------------------------------------------------------
216219 Reserved ID For developing private Ports. These will show up in live traffic sparsely, so we can use a high number. Keep it within 8 bits.
217220 ------------------------------------------------------------------------------------------------------------------------------------------ */
@@ -751,6 +754,12 @@ typedef struct _meshtastic_MeshPacket {
751754 meshtastic_MeshPacket_public_key_t public_key ;
752755 /* Indicates whether the packet was en/decrypted using PKI */
753756 bool pki_encrypted ;
757+ /* Last byte of the node number of the node that should be used as the next hop in routing.
758+ Set by the firmware internally, clients are not supposed to set this. */
759+ uint8_t next_hop ;
760+ /* Last byte of the node number of the node that will relay/relayed this packet.
761+ Set by the firmware internally, clients are not supposed to set this. */
762+ uint8_t relay_node ;
754763} meshtastic_MeshPacket ;
755764
756765/* The bluetooth to device link:
@@ -1159,7 +1168,7 @@ extern "C" {
11591168#define meshtastic_Data_init_default {_meshtastic_PortNum_MIN, {0, {0}}, 0, 0, 0, 0, 0, 0, false, 0}
11601169#define meshtastic_Waypoint_init_default {0, false, 0, false, 0, 0, 0, "", "", 0}
11611170#define meshtastic_MqttClientProxyMessage_init_default {"", 0, {{0, {0}}}, 0}
1162- #define meshtastic_MeshPacket_init_default {0, 0, 0, 0, {meshtastic_Data_init_default}, 0, 0, 0, 0, 0, _meshtastic_MeshPacket_Priority_MIN, 0, _meshtastic_MeshPacket_Delayed_MIN, 0, 0, {0, {0}}, 0}
1171+ #define meshtastic_MeshPacket_init_default {0, 0, 0, 0, {meshtastic_Data_init_default}, 0, 0, 0, 0, 0, _meshtastic_MeshPacket_Priority_MIN, 0, _meshtastic_MeshPacket_Delayed_MIN, 0, 0, {0, {0}}, 0, 0, 0 }
11631172#define meshtastic_NodeInfo_init_default {0, false, meshtastic_User_init_default, false, meshtastic_Position_init_default, 0, 0, false, meshtastic_DeviceMetrics_init_default, 0, 0, false, 0, 0, 0}
11641173#define meshtastic_MyNodeInfo_init_default {0, 0, 0, {0, {0}}, ""}
11651174#define meshtastic_LogRecord_init_default {"", 0, "", _meshtastic_LogRecord_Level_MIN}
@@ -1184,7 +1193,7 @@ extern "C" {
11841193#define meshtastic_Data_init_zero {_meshtastic_PortNum_MIN, {0, {0}}, 0, 0, 0, 0, 0, 0, false, 0}
11851194#define meshtastic_Waypoint_init_zero {0, false, 0, false, 0, 0, 0, "", "", 0}
11861195#define meshtastic_MqttClientProxyMessage_init_zero {"", 0, {{0, {0}}}, 0}
1187- #define meshtastic_MeshPacket_init_zero {0, 0, 0, 0, {meshtastic_Data_init_zero}, 0, 0, 0, 0, 0, _meshtastic_MeshPacket_Priority_MIN, 0, _meshtastic_MeshPacket_Delayed_MIN, 0, 0, {0, {0}}, 0}
1196+ #define meshtastic_MeshPacket_init_zero {0, 0, 0, 0, {meshtastic_Data_init_zero}, 0, 0, 0, 0, 0, _meshtastic_MeshPacket_Priority_MIN, 0, _meshtastic_MeshPacket_Delayed_MIN, 0, 0, {0, {0}}, 0, 0, 0 }
11881197#define meshtastic_NodeInfo_init_zero {0, false, meshtastic_User_init_zero, false, meshtastic_Position_init_zero, 0, 0, false, meshtastic_DeviceMetrics_init_zero, 0, 0, false, 0, 0, 0}
11891198#define meshtastic_MyNodeInfo_init_zero {0, 0, 0, {0, {0}}, ""}
11901199#define meshtastic_LogRecord_init_zero {"", 0, "", _meshtastic_LogRecord_Level_MIN}
@@ -1280,6 +1289,8 @@ extern "C" {
12801289#define meshtastic_MeshPacket_hop_start_tag 15
12811290#define meshtastic_MeshPacket_public_key_tag 16
12821291#define meshtastic_MeshPacket_pki_encrypted_tag 17
1292+ #define meshtastic_MeshPacket_next_hop_tag 18
1293+ #define meshtastic_MeshPacket_relay_node_tag 19
12831294#define meshtastic_NodeInfo_num_tag 1
12841295#define meshtastic_NodeInfo_user_tag 2
12851296#define meshtastic_NodeInfo_position_tag 3
@@ -1474,7 +1485,9 @@ X(a, STATIC, SINGULAR, UENUM, delayed, 13) \
14741485X(a, STATIC, SINGULAR, BOOL, via_mqtt, 14) \
14751486X(a, STATIC, SINGULAR, UINT32, hop_start, 15) \
14761487X(a, STATIC, SINGULAR, BYTES, public_key, 16) \
1477- X(a, STATIC, SINGULAR, BOOL, pki_encrypted, 17)
1488+ X(a, STATIC, SINGULAR, BOOL, pki_encrypted, 17) \
1489+ X(a, STATIC, SINGULAR, UINT32, next_hop, 18) \
1490+ X(a, STATIC, SINGULAR, UINT32, relay_node, 19)
14781491#define meshtastic_MeshPacket_CALLBACK NULL
14791492#define meshtastic_MeshPacket_DEFAULT NULL
14801493#define meshtastic_MeshPacket_payload_variant_decoded_MSGTYPE meshtastic_Data
@@ -1724,7 +1737,7 @@ extern const pb_msgdesc_t meshtastic_ChunkedPayloadResponse_msg;
17241737#define meshtastic_FromRadio_size 510
17251738#define meshtastic_Heartbeat_size 0
17261739#define meshtastic_LogRecord_size 426
1727- #define meshtastic_MeshPacket_size 367
1740+ #define meshtastic_MeshPacket_size 375
17281741#define meshtastic_MqttClientProxyMessage_size 501
17291742#define meshtastic_MyNodeInfo_size 77
17301743#define meshtastic_NeighborInfo_size 258
0 commit comments