nRF5 SDK for Mesh v5.0.0
Data Structures | Functions
RSSI monitor server model interface

Data Structures

struct  raw_rssi_data_entry_t
 Structure for holding the raw rssi data from each node before it is handled and sent to the rssi client. More...
struct  rssi_server_t
 Rssi server instance structure. More...


uint32_t rssi_server_init (rssi_server_t *p_server, uint16_t element_index)
 Initializes the RSSI server model. More...
uint32_t rssi_server_add_rssi_data (uint16_t test_address, int8_t rssi)
 Adds RSSI data samples to the models databuffer. More...

Detailed Description

Function Documentation

◆ rssi_server_init()

uint32_t rssi_server_init ( rssi_server_t *  p_server,
uint16_t  element_index 

Initializes the RSSI server model.

[in,out]p_serverPointer to the server instance structure.
[in]element_indexElement index to use when registering the RSSI server.
Return values
NRF_SUCCESSThe model was successfully initialized.
NRF_ERROR_NULLNULL pointer in function arguments
See also

◆ rssi_server_add_rssi_data()

uint32_t rssi_server_add_rssi_data ( uint16_t  test_address,
int8_t  rssi 

Adds RSSI data samples to the models databuffer.

[in]test_addressThe address of the device this RSSI sample was recieved from.
[in]rssiThe RSSI sample value.
Return values
NRF_SUCCESSThe data was added successfully NRF_ERROR_NO_MEM No room for new entries in the data buffer NRF_ERROR_INVALID_PARAM Invalid address parameter

Documentation feedback | Developer Zone | Subscribe | Updated