Commit 91d8c4c5 authored by Reto Da Forno's avatar Reto Da Forno
Browse files

health_min extended (additional fields 'events' and 'config') and new SX1262 event type added

parent ab76413b
......@@ -189,7 +189,7 @@ typedef struct {
/* combined (APP + COM) minimal health message */
#define DPP_HEALTH_MIN_LEN 18
#define DPP_HEALTH_MIN_LEN 22
typedef struct {
uint16_t uptime; /* system uptime (either COM or APP) [h] */
uint16_t cpu_dc_app; /* CPU duty cycle (APP) [10^-2 %] */
......@@ -204,6 +204,8 @@ typedef struct {
uint8_t radio_hop_cnt; /* Average hop count on first reception [10^-1 hops] */
uint16_t radio_rx_dc; /* RX duty cycle (COM) [10^-2 %] */
uint16_t radio_tx_dc; /* TX duty cycle (COM) [10^-2 %] */
uint16_t events; /* bit field to indicate events that occurred */
uint16_t config; /* contains a part of the current node configuration (bit field) */
} dpp_health_min_t;
......
......@@ -56,3 +56,4 @@ EVENT_SX1262_TIMEOUT, /* 0x10 | generic timeout error
EVENT_SX1262_RESET, /* 0x11 | device reset occurred | reset cause (16-bit) + counter (16-bit) */
EVENT_SX1262_TX_FAILED, /* 0x12 | transmission failed (e.g. due to channel busy or no ACK received) | error code */
EVENT_SX1262_FW_OTA_STATUS, /* 0x13 | firmware update status | status code */
EVENT_SX1262_CMD_FORWARDED, /* 0x14 | command forwarded | target ID */
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment