42 #include "mesh_friendship_types.h" 43 #include "nrf_mesh_events.h" 58 #define MESH_LPN_FRIEND_REQUEST_TIMEOUT_MIN_MS 100 60 #define MESH_LPN_FRIEND_REQUEST_TIMEOUT_MAX_MS 1000 63 #define MESH_LPN_POLL_TIMEOUT_MIN_MS 1000 66 #define MESH_LPN_POLL_TIMEOUT_MAX_MS 345599900 70 #define MESH_LPN_RECEIVE_DELAY_MIN_MS 10 72 #define MESH_LPN_RECEIVE_DELAY_MAX_MS 255 76 #ifndef MESH_LPN_POLL_RETRY_COUNT 77 #define MESH_LPN_POLL_RETRY_COUNT 5 81 #ifndef MESH_LPN_FRIEND_REQUEST_RETRY_COUNT 82 #define MESH_LPN_FRIEND_REQUEST_RETRY_COUNT 5 86 #ifndef MESH_LPN_POLL_SEPARATION_INTERVAL_MS 87 #define MESH_LPN_POLL_SEPARATION_INTERVAL_MS 50 164 uint32_t request_timeout_ms);
uint32_t mesh_lpn_friend_accept(const nrf_mesh_evt_lpn_friend_offer_t *p_friend_offer)
Accept a Friend Offer.
uint32_t receive_delay_ms
Requested receive delay (in milliseconds).
uint32_t mesh_lpn_poll_interval_set(uint32_t poll_interval_ms)
Set the poll interval.
uint8_t receive_window_factor
Weight factor that the Friend node will apply to the offered Receive Window.
bool mesh_lpn_is_in_friendship(void)
Get the state of the LPN.
uint32_t mesh_lpn_friend_request(mesh_lpn_friend_request_t friend_params, uint32_t request_timeout_ms)
Initiate the friendship establishment procedure.
void mesh_lpn_init(void)
Initialize the Low Power node.
uint8_t rssi_factor
Weight factor that the Friend node will apply to the received RSSI.
uint32_t poll_timeout_ms
Poll timeout (in milliseconds).
friend_criteria_t friend_criteria
Criteria that a Friend node must support to participate in the friendship negotiation.
Parameters of the Friend node Criteria field.
uint32_t mesh_lpn_friendship_terminate(void)
Terminate the active friendship.
Friend Request parameters.
uint8_t friend_queue_size_min_log
Minimum Friend Queue size.
uint32_t mesh_lpn_friend_poll(uint32_t delay_ms)
Initiate a Friend Poll.