Skip to content

Commit

Permalink
[create-pull-request] automated change (meshtastic#3204)
Browse files Browse the repository at this point in the history
Co-authored-by: thebentern <thebentern@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and thebentern authored Feb 11, 2024
1 parent f11def4 commit d52cfc2
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 10 deletions.
2 changes: 1 addition & 1 deletion protobufs
2 changes: 2 additions & 0 deletions src/mesh/generated/meshtastic/mesh.pb.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ typedef enum _meshtastic_HardwareModel {
meshtastic_HardwareModel_SENSELORA_S3 = 28,
/* Canary Radio Company - CanaryOne: https://canaryradio.io/products/canaryone */
meshtastic_HardwareModel_CANARYONE = 29,
/* Waveshare RP2040 LoRa - https://www.waveshare.com/rp2040-lora.htm */
meshtastic_HardwareModel_RP2040_LORA = 30,
/* ---------------------------------------------------------------------------
Less common/prototype boards listed here (needs one more byte over the air)
--------------------------------------------------------------------------- */
Expand Down
20 changes: 11 additions & 9 deletions src/mesh/generated/meshtastic/storeforward.pb.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ typedef struct _meshtastic_StoreAndForward_Statistics {
uint32_t requests_history;
/* Is the heartbeat enabled on the server? */
bool heartbeat;
/* Is the heartbeat enabled on the server? */
/* Maximum number of messages the server will return. */
uint32_t return_max;
/* Is the heartbeat enabled on the server? */
/* Maximum history window in minutes the server will return messages from. */
uint32_t return_window;
} meshtastic_StoreAndForward_Statistics;

Expand All @@ -74,18 +74,20 @@ typedef struct _meshtastic_StoreAndForward_History {
uint32_t history_messages;
/* The window of messages that was used to filter the history client requested */
uint32_t window;
/* The window of messages that was used to filter the history client requested */
/* Index in the packet history of the last message sent in a previous request to the server.
Will be sent to the client before sending the history and can be set in a subsequent request to avoid getting packets the server already sent to the client. */
uint32_t last_request;
} meshtastic_StoreAndForward_History;

/* TODO: REPLACE */
typedef struct _meshtastic_StoreAndForward_Heartbeat {
/* Number of that will be sent to the client */
/* Period in seconds that the heartbeat is sent out that will be sent to the client */
uint32_t period;
/* If set, this is not the primary Store & Forward router on the mesh */
uint32_t secondary;
} meshtastic_StoreAndForward_Heartbeat;

typedef PB_BYTES_ARRAY_T(237) meshtastic_StoreAndForward_text_t;
/* TODO: REPLACE */
typedef struct _meshtastic_StoreAndForward {
/* TODO: REPLACE */
Expand All @@ -98,8 +100,8 @@ typedef struct _meshtastic_StoreAndForward {
meshtastic_StoreAndForward_History history;
/* TODO: REPLACE */
meshtastic_StoreAndForward_Heartbeat heartbeat;
/* Empty Payload */
bool empty;
/* Text from history message. */
meshtastic_StoreAndForward_text_t text;
} variant;
} meshtastic_StoreAndForward;

Expand Down Expand Up @@ -148,15 +150,15 @@ extern "C" {
#define meshtastic_StoreAndForward_stats_tag 2
#define meshtastic_StoreAndForward_history_tag 3
#define meshtastic_StoreAndForward_heartbeat_tag 4
#define meshtastic_StoreAndForward_empty_tag 5
#define meshtastic_StoreAndForward_text_tag 5

/* Struct field encoding specification for nanopb */
#define meshtastic_StoreAndForward_FIELDLIST(X, a) \
X(a, STATIC, SINGULAR, UENUM, rr, 1) \
X(a, STATIC, ONEOF, MESSAGE, (variant,stats,variant.stats), 2) \
X(a, STATIC, ONEOF, MESSAGE, (variant,history,variant.history), 3) \
X(a, STATIC, ONEOF, MESSAGE, (variant,heartbeat,variant.heartbeat), 4) \
X(a, STATIC, ONEOF, BOOL, (variant,empty,variant.empty), 5)
X(a, STATIC, ONEOF, BYTES, (variant,text,variant.text), 5)
#define meshtastic_StoreAndForward_CALLBACK NULL
#define meshtastic_StoreAndForward_DEFAULT NULL
#define meshtastic_StoreAndForward_variant_stats_MSGTYPE meshtastic_StoreAndForward_Statistics
Expand Down Expand Up @@ -204,7 +206,7 @@ extern const pb_msgdesc_t meshtastic_StoreAndForward_Heartbeat_msg;
#define meshtastic_StoreAndForward_Heartbeat_size 12
#define meshtastic_StoreAndForward_History_size 18
#define meshtastic_StoreAndForward_Statistics_size 50
#define meshtastic_StoreAndForward_size 54
#define meshtastic_StoreAndForward_size 242

#ifdef __cplusplus
} /* extern "C" */
Expand Down

0 comments on commit d52cfc2

Please sign in to comment.