Hi,
I'm trying to send a broadcast message from my client to all my server. Actually i'm working over a modifed version of the light switch example.
i saw that in the node_setup of the provisioner the server address is set.
The easiest thing that i thought to do the broadcast is to change this part from this
if ((m_current_node_addr % 0x02)) { address.value = GROUP_ADDRESS_ODD; } else { address.value = GROUP_ADDRESS_EVEN; }
to this
address.value = GROUP_ADDRESS_ODD;
And then on the client side doing this
static void button_event_handler(uint32_t button_number) { ... status = simple_on_off_client_set_unreliable(&m_clients[3], &ptr[0],4, GROUP_MSG_REPEAT_COUNT); ... }
I should be able to send a message to all server. Actually the message is recived but after the 1st time i send it the client stop work but not getting any errors. The client just looks like he's lost on his code.
Any suggestion?
The only change that i've made to this code is the possibility to send an array of values and i added as well the code for the dfu even if that last part has not been tested yet.
Thanks for the help.