There is an "error" in the Mesh 4.00 friend.c:friendship_alloc(..) function, when allocating a new friend with PollTimeout greater than 2147 seconds.
The LPN allows you to set it to max defined by MESH_LPN_POLL_TIMEOUT_MAX_MS (approx. 95,9 hours ) , but the Friend node is not supporting it.
else if (MS_TO_US(poll_timeout_ms) > FRIEND_POLL_TIMEOUT_MAX_US) { /* TODO: Long running timer. */ return NRF_ERROR_NOT_SUPPORTED; }
How do I prevent the Friend node from terminating a friendship and flushing the queue if a LPN sleep for longer than 2147 seconds, eg. 94 hours using the mesh_lpn_poll_interval_set() ?