Hi I want to know how can i fix my code .
I will put " 30a_10s_1Onoff " in the Serial.read()
then divide to [30a / 10s / 1Onoff ]by setting the 'Null ' on the underbar(_)
i want to change char type array ctr1 /ctr2 /ctr 3 to int type and print int type number 30/ 10 /1
i wanted tell you that i have three char type array ctr1,ctr2,ctr3 and i need to change these char array into int type to use these values (30,10,1) as a number
Your two topics on the same or similar subject have been merged.
Please do not duplicate your questions as doing so wastes the time and effort of the volunteers trying to help you as they are then answering the same thing in different places.
Please create one topic only for your question and choose the forum category carefully. If you have multiple questions about the same project then please ask your questions in the one topic as the answers to one question provide useful context for the others, and also you won’t have to keep explaining your project repeatedly.
Repeated duplicate posting could result in a temporary or permanent ban from the forum.
Could you take a few moments to Learn How To Use The Forum
It will help you get the best out of the forum in the future.
{ invalid conversion from 'int' to 'char*' [-fpermissive] }
and it's result:
{
start
000000000000000000000000
}
i don't know why there are only so many 0 and how can i get rid of that error message
Of course I've searched a lot, but it's not easy to apply my code (i'm noob..)
so what should i do to get a better code
could you give an example code or good idea??
thanks.
Is there something at the end of the input text ? For example a Carriage Return or Line Feed or a timeout ? How do you know that everything is received ?