I am working on a project that will use bluetooth to send data from one arduino to another. The data has to consist of different values that are each interpreted differently (e.g. first value is a servo angle, second a motor speed etc.)
I’m thinking that maybe I could send a string made up of different numbers with seperation characters inbetween, then seperate each value , convert them to integer and store them in the respective variables.
However I have absolutely no idea on how to do this. Neither do I know how to seperate the string to seperate substrings, nor how to convert multi-character numbers from string to int. I know that to convert a single character number to its int value I have to subtract ‘0’ ASCII value, but what about a larger number like 1023? Any help would be appreciated.