Arduino advice
Бюджет $10-30 USD
Job Description:
I want to send data via NRF24 module tranciever. At the moment I am only able to send a text like " ABC123" , but I need to send elapsed time from a variable.
My code. I want to send to my receiver the value of the message2 variable, but I am getting error " initializer fails to determine size of 'data'
Who can help me.
//*********Send message to server after distance sense*****************
[login to view URL]("Sending to nrf24_server");
// Send a message to nrf24_server
char message[10];
int i;
// long val = 1234567;
long val=elapsed;
[login to view URL]("The value is: "); // Show the integer number
[login to view URL](val);
ltoa(val, message, 10);
[login to view URL]("As a string: ");
for (i = 0; i < strlen(message); i++) {
[login to view URL](message[i]); // Show as a string
message2=message2 + message[i];
}
delay(5000);
;
// uint8_t data[] = "ABC123,CHECK123456789"; // This works, I am able to send this
uint8_t data[] = message2[1]; //This doesn't work . I got the error initializer fails to determine size of 'data' .
[login to view URL](data, sizeof(data));
[login to view URL]();
// Now wait for a reply
uint8_t buf[RH_NRF24_MAX_MESSAGE_LEN];
uint8_t len = sizeof(buf);
status=1;
break;
//*****************************************
23 фрилансеров(-а) готовы выполнить эту работу в среднем за $22
i am an electronic engineer with more than 10 years of experience. i have worked with nrf24 module. i can help you handle the variable length data transmission. please contact me to discuss details
Hello! I'm currently working on a project to send data structs using an NRF24 so I completely understand your problem and can give you a solution within minutes, as soon as you hire me. You can easily test my solution Больше
Hello, Already done NRF24 project on freelancer.com. Please check my portfolio and you will get one project like this. Let me know if you are interested. Thank you!
Hi, you are sending the wrong data type. you have to adapt it before you load it into the string. cheers
I have great experience with arduino i worked on more than 10 projects using it , i can totally help you with your project , i also built custom boards that works on arduino platform
i have a good knowledge about arduino programming and have done number of projects using arduino board.i am also working with number of modules and sensors.i also have good knowledge about its hardware for interfacing Больше
I can help. I know what is the problem. //////////////////////////////////////////////////////////////////////////////////////
I have a solution for your code. I have gone through it also implemented it in my computer. So it won't take more than 30 minutes.
I have a lot of experience in communications and wireless embedded systems written in C language for more than 10 years.
I have worked extensively on Arduino platform. This is just a small programming task will be completed in just one day. As this is my first project on this site I am looking to build some reputation.