This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

NRF_ERROR_INVALID_STATE in Mesh

Hi Nordic Devzone,

I want to send a packet using send_reliable_message periodically every 3 seconds(using nrf_delay_ms for that) but i get NRF_ERROR_INVALID_STATE (in client side) and in the server side i get the same packet 6 times which i don't know why, BUT when i use the BUTTONS for sending in the same way even if i press the button every second it will send and i get no errors (i use the light_switch_example) . Can you please let me know what could be the problem ?

  • Hi MMG,

    Please be aware that reliable message requires a response from the peer device, otherwise the sender will retransmit and after that an timeout event will occurs if there isn't a response.

    I suspect the response to the opcode you used in your transmission wasn't processed or no reply was send from the receiver ? Have a look at handle_set_cb() in the server example, where we reply to a set command.

Related