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
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 ?
ps_anu Have you looked at the tips awneil has given. Are you receiving any logging information on the receiving node? You need to make sure that the boolean value is changed everywhere in the code necessary to the correct data type (char pointer as mentioned by @awneil). I have mentioned this in previous comments.
yeah i am receiving logging information but i am not getting the char which i have sent
yeah i am receiving logging information but i am not getting the char which i have sent
So, again, have you checked your data types?
how would you say that set_params.on_off is pointer?
how would you say that set_params.on_off is pointer
I didn't say that it was - I said that the way you are using it requires that it is!
Aha - I found what I actually said:

As I said, arr[] and Ara[] are char arrays, so this assignment:
set_params.on_off = arr;
expects that set_params.on_off is a char pointer.
If set_params.on_off is not, in fact, a char pointer - then that code is not going to do what you want!
Again, this is standard 'C' programming - nothing specifically to do with Nordic:
The thing on the left-hand side of an assignment has to be of the same type (or a "compatible" type) as the thing on the right-hand side of the assignment.