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
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.
Thanks alot both of you . i have changed in client side (set_params.on_off) , now what are the things i should change in server side
One of the reasons this thread is getting so long and so hard to follow is that you keep giving these over-brief, vague posts thin on detail - so that we keep having to pull the information out of you!
You still haven't answered all the questions about the problems you were seeing.
i have changed in client side (set_params.on_off)
So what, exactly, have you changed?
How, exactly, did you change it?
How, exactly, has that changed the behaviour that you are seeing?
Is that now the behaviour that you expect/require?
Did you understand the point (sic!) about pointers ?
yeah , set_params.on_off is in bool state , so now i changed it to a character,
uint16_t x_in;
char a = 78;
//char arr[80] = "code";
// char ara [80] = "set";
switch(button_number)
{
case 0:
case 2:
x_in = a;
break;
case 1:
case 3:
x_in = a;
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",x_in);
yes i got result , but not in server side, i hope that i need to make some changes in server side, where i should change and how
set_params.on_off is in bool state , so now i changed it to a character,
Then it's still wrong!
Did you understand the point (sic!) about pointers ?
apparently not!
set_params.on_off is in bool state , so now i changed it to a character,
Then it's still wrong!
Did you understand the point (sic!) about pointers ?
apparently not!