Hi,
Look the nrf_mesh_rx_metadata_t definition:
typedef struct
{
nrf_mesh_rx_source_t source; /**< Source of the received packet. */
union
{
/** Scanner packet metadata */
nrf_mesh_rx_metadata_scanner_t scanner;
/** Instaburst packet metadata */
nrf_mesh_rx_metadata_instaburst_t instaburst;
/** GATT packet metadata */
nrf_mesh_rx_metadata_gatt_t gatt;
/** Loopback packet metadata */
nrf_mesh_rx_metadata_loopback_t loopback;
} params;
} nrf_mesh_rx_metadata_t;
In which nrf_mesh_rx_source_t is defined as below:
typedef enum
{
NRF_MESH_RX_SOURCE_SCANNER, /**< The packet came from the scanner. */
NRF_MESH_RX_SOURCE_GATT, /**< The packet came from a GATT connection. */
NRF_MESH_RX_SOURCE_FRIEND, /**< The packet came from a friend node. */
NRF_MESH_RX_SOURCE_LOW_POWER, /**< The packet came from a low power node. */
NRF_MESH_RX_SOURCE_INSTABURST, /**< The packet came from an Instaburst event. */
NRF_MESH_RX_SOURCE_LOOPBACK, /**< The packet came from this device. */
} nrf_mesh_rx_source_t;
So, there are 6 types of RX packet type but only 4 types of metadata?
Seems friend and low power type of metadata are missed?