Hey, so basically what i'm trying todo is fairly simple. Personally this is new territory in Arduino programming so i lack the knowledge to be able to get this running like id like.
Basically the plan is to download my code to my Arduino Pro mini (5V/16MHz), open the PuTTY application as my interface and be able to type in a 5 character code and press enter.
for Example:
-the fist character can only contain a g or an s
-the second and third character can on contain integers 0-32
right now i have the code perfectly functioning when you type in a 3 digit code of 3 values (_ _ ) i want to turn my 0-9 (on each of my second and third values) into 00-31 but cant figure out how to do that. ( _ _ _ _) (ignore the spaces, just for clarification)
I think the first thing you need is a more robust way to receive the data. Have a look at the second example in Serial Input Basics
That will put the whole message into the array recvdChars[]. Then I think all you need to do is extend your decipher() function to work with more elements.
If you need to be able to work with different length messages then you will need to check the length of the string with strlen() before trying to parse it.