Закрыт

Arduino advice

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;

//*****************************************

Навыки: Arduino

О клиенте:
( 10 отзыв(-а, -ов) ) alphen aan den Rijn, Netherlands

ID проекта: #10947512

23 фрилансеров(-а) готовы выполнить эту работу в среднем за $22

jartur

Hello I can help you with your Arduino project , but. I need more information about your project like deadline and other things. i have all this components for make all tests until achieve this project and if it's s Больше

$25 USD за 7 дней(-я)
(63 отзывов(-а))
5.6
MuhammadUzair16

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

$15 USD за 0 дней(-я)
(12 отзывов(-а))
5.6
acarloss

Hi, I have experience for 15+ years in electronics/embedded development. I have several years of advanced AVR/arduino development, including library development from scratch. Practically all Arduino AVR boards used, Больше

$30 USD за 1 день
(19 отзывов(-а))
5.4
TisteAndii

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 Больше

$25 USD за 0 дней(-я)
(16 отзывов(-а))
4.2
Magicspell

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!

$55 USD за 2 дней(-я)
(6 отзывов(-а))
3.8
gab3iel

Hi, you are sending the wrong data type. you have to adapt it before you load it into the string. cheers

$30 USD за 3 дней(-я)
(3 отзывов(-а))
3.5
kchiu3

Let me help. Just want rating. Have you found the solution yet?

$10 USD за 2 дней(-я)
(1 отзыв)
2.2
narendranpandian

A proposal has not yet been provided

$10 USD за 1 день
(1 отзыв)
2.1
ismavg

A proposal has not yet been provided

$15 USD за 2 дней(-я)
(1 отзыв)
1.7
ahmedmoustafa94

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

$15 USD за 1 день
(1 отзыв)
1.6
asimpedic

hello, I can solve this for you very easy. you need just to delete some part of code..

$15 USD за 1 день
(2 отзывов(-а))
1.4
Enggtechworld

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 Больше

$10 USD за 1 день
(2 отзывов(-а))
0.9
Cheihun

I can help. I know what is the problem. //////////////////////////////////////////////////////////////////////////////////////

$25 USD за 10 дней(-я)
(0 отзывов(-а))
0.0
aniruddha77

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.

$25 USD за 1 день
(0 отзывов(-а))
0.0
huntsmanb

Hey, if you want some Arduino help I am your guy. I have done extensive work sensors, motor drivers, and wireless transmissions of various kinds. I always provide industry standard documentation and communicate regu Больше

$30 USD за 1 день
(0 отзывов(-а))
0.0
denisgalaktionov

A proposal has not yet been provided

$14 USD за 1 день
(0 отзывов(-а))
0.0
cabreraivan

I have a lot of experience in communications and wireless embedded systems written in C language for more than 10 years.

$30 USD за 3 дней(-я)
(0 отзывов(-а))
0.0
haidermirza3

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.

$25 USD за 1 день
(0 отзывов(-а))
0.0
arduinoshopstaff

we can help you with our experience, here we r to ur service!

$17 USD за 1 день
(0 отзывов(-а))
0.0