Insert value in Serial Monitor and save it into a variable

Hello dear community,

I want to insert/type a value into the Serial Monitor, and than give/save this inserted value into a variable. I have already read this forum-article Article but, unfortunately, I could not get any further.

Any help will be appreciated

Thank you very much in advance for your suggestions and help.

Have a nice day

Best Regards

Kosta

Did you try the example that you linked to ?

I did read the example number 4. but, correct me if I misunderstood it and being wrong, it does not save the inserted value into a variable.

Oh yes it does !

dataNumber = atoi(receivedChars);

Please excuse me for the late repsonse. Thank you very much for this hint and your help :slight_smile: . Now I hope I can work further on my program.

Have a nice day

Best regards

Kosta

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.