- can i send “A1000B1000C1000D1000*” these 25 characters via bluetooth???
With the right app on the sending end, yes.
- thus arduino will receive this much characters(25) ??? By using Serial.read??
If they do not get lost in the ether, or mangled, yes. NOT all at once, though. Sending start and end markers is a much better idea. “<A1000B1000C1000*D1000>”.
The delimiters you have are not useful delimiters. There is no way, using the * to tell the start of a packet from the end of a packet from data that is reasonably IN the packet.
3)and how can i decode 25 serial bit into A and its value…B and its value…c and its value and d and its value???i have used * for seperation?
Save all the data in a NULL terminated array of chars, and use strtok() to extract each token.
Seria input basics - updated
String decode=( Byte_received & 011111000000000000000000);//it will remove *carries A1000 and ///////////////////////////////////////////////////////////////////////////remove all char ahead
Masking the last 16 bits received with a 24 digit octal constant does not make sense. Storing the result in a String does not make sense.
Passing atoi() the address of a String does not make sense.
it will help or not??
Not in the slightest.