hi...
i am working on mesh , i have done light switch example , now i want to get some message from node and send to particular node . how to print the same message which is from particular node to uart termite
please help me out.
thanks in advance
hi...
i am working on mesh , i have done light switch example , now i want to get some message from node and send to particular node . how to print the same message which is from particular node to uart termite
please help me out.
thanks in advance
Which part are you stuck on:
Each one is entirely independent of the other.
i am using two boards , example A and B .. A will sent a message to B And that message has to be read and write on uart using termite
thank you so much...i have sent the message from client to server , now how can i print the data from server using uart
As far as the UART is concerned, it's just data - it is irrelevant where it came from, or how it got there.
Surely, you have used the UART before?
i hope, u didn't understand my question
Then please clarify your question!
What have you tried?
Where are you stuck?
Have you tried SDK examples?
thank you so much Bjorn kvaale. i have set the message in generic_onoff_set_params_t, in light switch client example , i am getting results like what does it mean ?
this is pic of client

this is pic of server side

how do i know my message have sent from client to server and want to know whether it is received in server side or not
thank you so much Bjorn kvaale. i have set the message in generic_onoff_set_params_t, in light switch client example , i am getting results like what does it mean ?
this is pic of client

this is pic of server side

how do i know my message have sent from client to server and want to know whether it is received in server side or not
It seems the message has been received on the server side. The client also responded with an acknowledged message success, which means that the client has successfully sent the message & the server responded to the client saying it has received the message. Go to line 204 in app_onoff.c & line 96 in main.c for more info.
but i didn't receive that character , how to get that char in server side .
see the code below this how i set the character in client side
*/
char arr[5] = "code";
char ara[5] = "set";
switch(button_number)
{
case 0:
case 2:
set_params.on_off = arr;
break;
case 1:
case 3:
set_params.on_off = Ara;
break;
}
set_params.tid = tid++;
transition_params.delay_ms = APP_CONFIG_ONOFF_DELAY_MS;
transition_params.transition_time_ms = APP_CONFIG_ONOFF_TRANSITION_TIME_MS;
__LOG(LOG_SRC_APP, LOG_LEVEL_INFO, "Sending msg: ONOFF SET %d\n", set_params.on_off);
check whether it is correct or wrong
What is the type of set_params.on_off ?
arr[] and Ara[] are char arrays, so:
set_params.on_off = arr;
Expects that set_params.on_off is a char pointer.
What does
__LOG(LOG_SRC_APP, LOG_LEVEL_INFO, "Sending msg: ONOFF SET %d\n", set_params.on_off);
actually print?
You would usually use %p to print a pointer...
hi.... Bjorn kvaale , did you get my question, waiting for your response .
Thanks in advance .
Which particular question?
Did you see my question about the type of set_params.on_off ?