sforkowany z mirror/meshtastic-firmware
[create-pull-request] automated change
rodzic
9c50a76ea2
commit
a0b4b4efa1
|
@ -1 +1 @@
|
||||||
Subproject commit 98a888f863a750464cd44526568af20c7bf12227
|
Subproject commit 40b822424221f4f7704e291d2b422c9dcca84c83
|
|
@ -464,7 +464,6 @@ typedef struct _User {
|
||||||
} User;
|
} User;
|
||||||
|
|
||||||
typedef PB_BYTES_ARRAY_T(237) Data_payload_t;
|
typedef PB_BYTES_ARRAY_T(237) Data_payload_t;
|
||||||
typedef PB_BYTES_ARRAY_T(237) Data_payload_compressed_t;
|
|
||||||
/* (Formerly called SubPacket)
|
/* (Formerly called SubPacket)
|
||||||
The payload portion fo a packet, this is the actual bytes that are sent
|
The payload portion fo a packet, this is the actual bytes that are sent
|
||||||
inside a radio packet (because from/to are broken out by the comms library) */
|
inside a radio packet (because from/to are broken out by the comms library) */
|
||||||
|
@ -472,34 +471,30 @@ typedef struct _Data {
|
||||||
/* Formerly named typ and of type Type */
|
/* Formerly named typ and of type Type */
|
||||||
PortNum portnum;
|
PortNum portnum;
|
||||||
/* TODO: REPLACE */
|
/* TODO: REPLACE */
|
||||||
pb_size_t which_payloadVariant;
|
Data_payload_t payload;
|
||||||
union {
|
|
||||||
Data_payload_t payload;
|
|
||||||
Data_payload_compressed_t payload_compressed;
|
|
||||||
};
|
|
||||||
/* TODO: REPLACE */
|
|
||||||
bool want_response;
|
|
||||||
/* Not normally used, but for testing a sender can request that recipient
|
/* Not normally used, but for testing a sender can request that recipient
|
||||||
responds in kind (i.e. if it received a position, it should unicast back it's position).
|
responds in kind (i.e. if it received a position, it should unicast back it's position).
|
||||||
Note: that if you set this on a broadcast you will receive many replies. */
|
Note: that if you set this on a broadcast you will receive many replies. */
|
||||||
uint32_t dest;
|
bool want_response;
|
||||||
/* The address of the destination node.
|
/* The address of the destination node.
|
||||||
This field is is filled in by the mesh radio device software, application
|
This field is is filled in by the mesh radio device software, application
|
||||||
layer software should never need it.
|
layer software should never need it.
|
||||||
RouteDiscovery messages _must_ populate this.
|
RouteDiscovery messages _must_ populate this.
|
||||||
Other message types might need to if they are doing multihop routing. */
|
Other message types might need to if they are doing multihop routing. */
|
||||||
uint32_t source;
|
uint32_t dest;
|
||||||
/* The address of the original sender for this message.
|
/* The address of the original sender for this message.
|
||||||
This field should _only_ be populated for reliable multihop packets (to keep
|
This field should _only_ be populated for reliable multihop packets (to keep
|
||||||
packets small). */
|
packets small). */
|
||||||
uint32_t request_id;
|
uint32_t source;
|
||||||
/* Only used in routing or response messages.
|
/* Only used in routing or response messages.
|
||||||
Indicates the original message ID that this message is reporting failure on. (formerly called original_id) */
|
Indicates the original message ID that this message is reporting failure on. (formerly called original_id) */
|
||||||
uint32_t reply_id;
|
uint32_t request_id;
|
||||||
/* If set, this message is intened to be a reply to a previously sent message with the defined id. */
|
/* If set, this message is intened to be a reply to a previously sent message with the defined id. */
|
||||||
uint32_t emoji;
|
uint32_t reply_id;
|
||||||
/* Defaults to false. If true, then what is in the payload should be treated as an emoji like giving
|
/* Defaults to false. If true, then what is in the payload should be treated as an emoji like giving
|
||||||
a message a heart or poop emoji. */
|
a message a heart or poop emoji. */
|
||||||
|
uint32_t emoji;
|
||||||
|
/* Location structure */
|
||||||
bool has_location;
|
bool has_location;
|
||||||
Location location;
|
Location location;
|
||||||
} Data;
|
} Data;
|
||||||
|
@ -703,7 +698,7 @@ extern "C" {
|
||||||
#define User_init_default {"", "", "", {0}, _HardwareModel_MIN, 0, 0, 0, 0}
|
#define User_init_default {"", "", "", {0}, _HardwareModel_MIN, 0, 0, 0, 0}
|
||||||
#define RouteDiscovery_init_default {0, {0, 0, 0, 0, 0, 0, 0, 0}}
|
#define RouteDiscovery_init_default {0, {0, 0, 0, 0, 0, 0, 0, 0}}
|
||||||
#define Routing_init_default {0, {RouteDiscovery_init_default}}
|
#define Routing_init_default {0, {RouteDiscovery_init_default}}
|
||||||
#define Data_init_default {_PortNum_MIN, 0, {{0, {0}}}, 0, 0, 0, 0, 0, 0, false, Location_init_default}
|
#define Data_init_default {_PortNum_MIN, {0, {0}}, 0, 0, 0, 0, 0, 0, false, Location_init_default}
|
||||||
#define Location_init_default {0, 0, 0, 0, 0}
|
#define Location_init_default {0, 0, 0, 0, 0}
|
||||||
#define MeshPacket_init_default {0, 0, 0, 0, {Data_init_default}, 0, 0, 0, 0, 0, _MeshPacket_Priority_MIN, 0, _MeshPacket_Delayed_MIN}
|
#define MeshPacket_init_default {0, 0, 0, 0, {Data_init_default}, 0, 0, 0, 0, 0, _MeshPacket_Priority_MIN, 0, _MeshPacket_Delayed_MIN}
|
||||||
#define NodeInfo_init_default {0, false, User_init_default, false, Position_init_default, 0, 0, false, DeviceMetrics_init_default}
|
#define NodeInfo_init_default {0, false, User_init_default, false, Position_init_default, 0, 0, false, DeviceMetrics_init_default}
|
||||||
|
@ -717,7 +712,7 @@ extern "C" {
|
||||||
#define User_init_zero {"", "", "", {0}, _HardwareModel_MIN, 0, 0, 0, 0}
|
#define User_init_zero {"", "", "", {0}, _HardwareModel_MIN, 0, 0, 0, 0}
|
||||||
#define RouteDiscovery_init_zero {0, {0, 0, 0, 0, 0, 0, 0, 0}}
|
#define RouteDiscovery_init_zero {0, {0, 0, 0, 0, 0, 0, 0, 0}}
|
||||||
#define Routing_init_zero {0, {RouteDiscovery_init_zero}}
|
#define Routing_init_zero {0, {RouteDiscovery_init_zero}}
|
||||||
#define Data_init_zero {_PortNum_MIN, 0, {{0, {0}}}, 0, 0, 0, 0, 0, 0, false, Location_init_zero}
|
#define Data_init_zero {_PortNum_MIN, {0, {0}}, 0, 0, 0, 0, 0, 0, false, Location_init_zero}
|
||||||
#define Location_init_zero {0, 0, 0, 0, 0}
|
#define Location_init_zero {0, 0, 0, 0, 0}
|
||||||
#define MeshPacket_init_zero {0, 0, 0, 0, {Data_init_zero}, 0, 0, 0, 0, 0, _MeshPacket_Priority_MIN, 0, _MeshPacket_Delayed_MIN}
|
#define MeshPacket_init_zero {0, 0, 0, 0, {Data_init_zero}, 0, 0, 0, 0, 0, _MeshPacket_Priority_MIN, 0, _MeshPacket_Delayed_MIN}
|
||||||
#define NodeInfo_init_zero {0, false, User_init_zero, false, Position_init_zero, 0, 0, false, DeviceMetrics_init_zero}
|
#define NodeInfo_init_zero {0, false, User_init_zero, false, Position_init_zero, 0, 0, false, DeviceMetrics_init_zero}
|
||||||
|
@ -792,7 +787,6 @@ extern "C" {
|
||||||
#define User_ant_azimuth_tag 12
|
#define User_ant_azimuth_tag 12
|
||||||
#define Data_portnum_tag 1
|
#define Data_portnum_tag 1
|
||||||
#define Data_payload_tag 2
|
#define Data_payload_tag 2
|
||||||
#define Data_payload_compressed_tag 10
|
|
||||||
#define Data_want_response_tag 3
|
#define Data_want_response_tag 3
|
||||||
#define Data_dest_tag 4
|
#define Data_dest_tag 4
|
||||||
#define Data_source_tag 5
|
#define Data_source_tag 5
|
||||||
|
@ -890,15 +884,14 @@ X(a, STATIC, ONEOF, UENUM, (variant,error_reason,error_reason), 3)
|
||||||
|
|
||||||
#define Data_FIELDLIST(X, a) \
|
#define Data_FIELDLIST(X, a) \
|
||||||
X(a, STATIC, SINGULAR, UENUM, portnum, 1) \
|
X(a, STATIC, SINGULAR, UENUM, portnum, 1) \
|
||||||
X(a, STATIC, ONEOF, BYTES, (payloadVariant,payload,payload), 2) \
|
X(a, STATIC, SINGULAR, BYTES, payload, 2) \
|
||||||
X(a, STATIC, SINGULAR, BOOL, want_response, 3) \
|
X(a, STATIC, SINGULAR, BOOL, want_response, 3) \
|
||||||
X(a, STATIC, SINGULAR, FIXED32, dest, 4) \
|
X(a, STATIC, SINGULAR, FIXED32, dest, 4) \
|
||||||
X(a, STATIC, SINGULAR, FIXED32, source, 5) \
|
X(a, STATIC, SINGULAR, FIXED32, source, 5) \
|
||||||
X(a, STATIC, SINGULAR, FIXED32, request_id, 6) \
|
X(a, STATIC, SINGULAR, FIXED32, request_id, 6) \
|
||||||
X(a, STATIC, SINGULAR, FIXED32, reply_id, 7) \
|
X(a, STATIC, SINGULAR, FIXED32, reply_id, 7) \
|
||||||
X(a, STATIC, SINGULAR, FIXED32, emoji, 8) \
|
X(a, STATIC, SINGULAR, FIXED32, emoji, 8) \
|
||||||
X(a, STATIC, OPTIONAL, MESSAGE, location, 9) \
|
X(a, STATIC, OPTIONAL, MESSAGE, location, 9)
|
||||||
X(a, STATIC, ONEOF, BYTES, (payloadVariant,payload_compressed,payload_compressed), 10)
|
|
||||||
#define Data_CALLBACK NULL
|
#define Data_CALLBACK NULL
|
||||||
#define Data_DEFAULT NULL
|
#define Data_DEFAULT NULL
|
||||||
#define Data_location_MSGTYPE Location
|
#define Data_location_MSGTYPE Location
|
||||||
|
|
|
@ -13,21 +13,21 @@
|
||||||
/* Enum definitions */
|
/* Enum definitions */
|
||||||
typedef enum _ModuleConfig_SerialConfig_Serial_Baud {
|
typedef enum _ModuleConfig_SerialConfig_Serial_Baud {
|
||||||
ModuleConfig_SerialConfig_Serial_Baud_BAUD_Default = 0,
|
ModuleConfig_SerialConfig_Serial_Baud_BAUD_Default = 0,
|
||||||
ModuleConfig_SerialConfig_Serial_Baud_BAUD_2400 = 1,
|
ModuleConfig_SerialConfig_Serial_Baud_BAUD_110 = 1,
|
||||||
ModuleConfig_SerialConfig_Serial_Baud_BAUD_4800 = 2,
|
ModuleConfig_SerialConfig_Serial_Baud_BAUD_300 = 2,
|
||||||
ModuleConfig_SerialConfig_Serial_Baud_BAUD_9600 = 3,
|
ModuleConfig_SerialConfig_Serial_Baud_BAUD_600 = 3,
|
||||||
ModuleConfig_SerialConfig_Serial_Baud_BAUD_19200 = 4,
|
ModuleConfig_SerialConfig_Serial_Baud_BAUD_1200 = 4,
|
||||||
ModuleConfig_SerialConfig_Serial_Baud_BAUD_38400 = 5,
|
ModuleConfig_SerialConfig_Serial_Baud_BAUD_2400 = 5,
|
||||||
ModuleConfig_SerialConfig_Serial_Baud_BAUD_57600 = 6,
|
ModuleConfig_SerialConfig_Serial_Baud_BAUD_4800 = 6,
|
||||||
ModuleConfig_SerialConfig_Serial_Baud_BAUD_115200 = 7,
|
ModuleConfig_SerialConfig_Serial_Baud_BAUD_9600 = 7,
|
||||||
ModuleConfig_SerialConfig_Serial_Baud_BAUD_230400 = 8,
|
ModuleConfig_SerialConfig_Serial_Baud_BAUD_19200 = 8,
|
||||||
ModuleConfig_SerialConfig_Serial_Baud_BAUD_460800 = 9,
|
ModuleConfig_SerialConfig_Serial_Baud_BAUD_38400 = 9,
|
||||||
ModuleConfig_SerialConfig_Serial_Baud_BAUD_576000 = 10,
|
ModuleConfig_SerialConfig_Serial_Baud_BAUD_57600 = 10,
|
||||||
ModuleConfig_SerialConfig_Serial_Baud_BAUD_921600 = 11,
|
ModuleConfig_SerialConfig_Serial_Baud_BAUD_115200 = 11,
|
||||||
ModuleConfig_SerialConfig_Serial_Baud_BAUD_110 = 12,
|
ModuleConfig_SerialConfig_Serial_Baud_BAUD_230400 = 12,
|
||||||
ModuleConfig_SerialConfig_Serial_Baud_BAUD_300 = 13,
|
ModuleConfig_SerialConfig_Serial_Baud_BAUD_460800 = 13,
|
||||||
ModuleConfig_SerialConfig_Serial_Baud_BAUD_600 = 14,
|
ModuleConfig_SerialConfig_Serial_Baud_BAUD_576000 = 14,
|
||||||
ModuleConfig_SerialConfig_Serial_Baud_BAUD_1200 = 15
|
ModuleConfig_SerialConfig_Serial_Baud_BAUD_921600 = 15
|
||||||
} ModuleConfig_SerialConfig_Serial_Baud;
|
} ModuleConfig_SerialConfig_Serial_Baud;
|
||||||
|
|
||||||
typedef enum _ModuleConfig_SerialConfig_Serial_Mode {
|
typedef enum _ModuleConfig_SerialConfig_Serial_Mode {
|
||||||
|
@ -133,8 +133,8 @@ typedef struct _ModuleConfig {
|
||||||
|
|
||||||
/* Helper constants for enums */
|
/* Helper constants for enums */
|
||||||
#define _ModuleConfig_SerialConfig_Serial_Baud_MIN ModuleConfig_SerialConfig_Serial_Baud_BAUD_Default
|
#define _ModuleConfig_SerialConfig_Serial_Baud_MIN ModuleConfig_SerialConfig_Serial_Baud_BAUD_Default
|
||||||
#define _ModuleConfig_SerialConfig_Serial_Baud_MAX ModuleConfig_SerialConfig_Serial_Baud_BAUD_1200
|
#define _ModuleConfig_SerialConfig_Serial_Baud_MAX ModuleConfig_SerialConfig_Serial_Baud_BAUD_921600
|
||||||
#define _ModuleConfig_SerialConfig_Serial_Baud_ARRAYSIZE ((ModuleConfig_SerialConfig_Serial_Baud)(ModuleConfig_SerialConfig_Serial_Baud_BAUD_1200+1))
|
#define _ModuleConfig_SerialConfig_Serial_Baud_ARRAYSIZE ((ModuleConfig_SerialConfig_Serial_Baud)(ModuleConfig_SerialConfig_Serial_Baud_BAUD_921600+1))
|
||||||
|
|
||||||
#define _ModuleConfig_SerialConfig_Serial_Mode_MIN ModuleConfig_SerialConfig_Serial_Mode_MODE_Default
|
#define _ModuleConfig_SerialConfig_Serial_Mode_MIN ModuleConfig_SerialConfig_Serial_Mode_MODE_Default
|
||||||
#define _ModuleConfig_SerialConfig_Serial_Mode_MAX ModuleConfig_SerialConfig_Serial_Mode_MODE_PROTO
|
#define _ModuleConfig_SerialConfig_Serial_Mode_MAX ModuleConfig_SerialConfig_Serial_Mode_MODE_PROTO
|
||||||
|
|
|
@ -46,6 +46,8 @@ typedef enum _PortNum {
|
||||||
/* Admin control packets.
|
/* Admin control packets.
|
||||||
Payload is a [AdminMessage](/docs/developers/protobufs/api#adminmessage) message */
|
Payload is a [AdminMessage](/docs/developers/protobufs/api#adminmessage) message */
|
||||||
PortNum_ADMIN_APP = 6,
|
PortNum_ADMIN_APP = 6,
|
||||||
|
/* Compressed TEXT_MESSAGE payloads. */
|
||||||
|
PortNum_TEXT_MESSAGE_COMPRESSED_APP = 7,
|
||||||
/* Provides a 'ping' service that replies to any packet it receives.
|
/* Provides a 'ping' service that replies to any packet it receives.
|
||||||
Also serves as a small example module. */
|
Also serves as a small example module. */
|
||||||
PortNum_REPLY_APP = 32,
|
PortNum_REPLY_APP = 32,
|
||||||
|
@ -69,8 +71,6 @@ typedef enum _PortNum {
|
||||||
Maintained by Github user a-f-G-U-C (a Meshtastic contributor)
|
Maintained by Github user a-f-G-U-C (a Meshtastic contributor)
|
||||||
Project files at https://github.com/a-f-G-U-C/Meshtastic-ZPS */
|
Project files at https://github.com/a-f-G-U-C/Meshtastic-ZPS */
|
||||||
PortNum_ZPS_APP = 68,
|
PortNum_ZPS_APP = 68,
|
||||||
/* Compressed payloads. */
|
|
||||||
PortNum_COMPRESSION_APP = 69,
|
|
||||||
/* Private applications should use portnums >= 256.
|
/* Private applications should use portnums >= 256.
|
||||||
To simplify initial development and testing you can use "PRIVATE_APP"
|
To simplify initial development and testing you can use "PRIVATE_APP"
|
||||||
in your code without needing to rebuild protobuf files (via [regen-protos.sh](https://github.com/meshtastic/Meshtastic-device/blob/master/bin/regen-protos.sh)) */
|
in your code without needing to rebuild protobuf files (via [regen-protos.sh](https://github.com/meshtastic/Meshtastic-device/blob/master/bin/regen-protos.sh)) */
|
||||||
|
|
Ładowanie…
Reference in New Issue