Kapalı

Arduino advice

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;

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

Beceriler: Arduino

Daha fazlasını gör: int i, php check number google results, check number fly javascript, check number results google, google check number search done keywords, sms payments works short number, twitter api check number followers, text field check number javascriptonchange, check number hours played sever, google check number results scripts, roulette bot check number, can check number pictures catalogue via action script, script php check number players counter strike, start stock advice website, drafting legal advice, advice managment, write advice articles money, post restaurant advice, stock advice, proofreading job china advice

İşveren Hakkında:
( 6 değerlendirme ) alphen aan den Rijn, Netherlands

Proje NO: #10947512

Bu iş için 24 freelancer ortalamada $23 teklif veriyor

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 Daha Fazla

in %bids___i_period_sub_35% gün içinde25%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(54 Değerlendirme)
5.4
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

in %bids___i_period_sub_35% gün içinde15%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(11 Değerlendirme)
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, Daha Fazla

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(17 Değerlendirme)
5.3
calebedhouse

Hi, I have recently been coding for the Arduino platform so i am familiar with its code. In your code, after converting your long to a string (ltoa), the variable message _should_ be able to be passed directly to Daha Fazla

in %bids___i_period_sub_35% gün içinde20%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(2 Değerlendirme)
4.9
gauravsharma132

Dear Friend, We have good 5+ years experience in embedded software and design, It is not only our job but passion. We have worked on from basic hardware to quad-copters including custom apps, IoT's and PCB designs. Daha Fazla

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(19 Değerlendirme)
4.7
junaidahma463

Hello Client, I have seen ur project details and i believe that I can do ur assigned task efficiently and with in the time span u r providing.I am an electronic engineer I will charge u as per ur wish.I will provide 3 Daha Fazla

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(13 Değerlendirme)
4.0
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!

in %bids___i_period_sub_35% gün içinde55%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(6 Değerlendirme)
3.8
gab3iel

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

in %bids___i_period_sub_35% gün içinde30%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(3 Değerlendirme)
3.6
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 Daha Fazla

in %bids___i_period_sub_35% gün içinde25%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(12 Değerlendirme)
3.6
1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(5 Değerlendirme)
2.6
kchiu3

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

in %bids___i_period_sub_35% gün içinde10%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(1 Yorum)
2.2
narendranpandian

A proposal has not yet been provided

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(1 Yorum)
2.1
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

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(1 Yorum)
1.6
ismavg

A proposal has not yet been provided

in %bids___i_period_sub_35% gün içinde15%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(1 Yorum)
1.7
asimpedic

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

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(2 Değerlendirme)
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 Daha Fazla

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(2 Değerlendirme)
0.9
denisgalaktionov

A proposal has not yet been provided

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(0 Değerlendirme)
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.

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(0 Değerlendirme)
0.0
cabreraivan

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

in %bids___i_period_sub_35% gün içinde30%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(0 Değerlendirme)
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 Daha Fazla

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(0 Değerlendirme)
0.0