So,I want my code to only start reading data after it recieves # and till it gets to newline character.
My current code reads everything and stops at newline character.How do i make it to only start reading after #. My code is:
Have a look at the 3rd example in Serial Input Basics. You can change the start-marker to be a '#' character and the end-marker to be a '\n' character.
Why would you wonder for more than 15 seconds what a Boolean is? Have you never heard of google? Seems like you could track that one down pretty quick. We like to help but you have to at least appear to be trying at least a little.
I got that first program working,that starts reading after # till it reaches newline character.So I am trying to make my arduino first see if it has SMS,Then send AT command for reading that sms.And THEN read it from # to \n (SMS begins with # and ends with \n).And after that use that SMS in strcmp
Nikola19992: I got that first program working,that starts reading after # till it reaches newline character.So I am trying to make my arduino first see if it has SMS,Then send AT command for reading that sms.And THEN read it from # to \n (SMS begins with # and ends with \n).And after that use that SMS in strcmp
If you want help please post the working program that YOU have uploaded to your Arduino. And post an example of the message it receives. And tell us what you want to find in the message.
I don't understand what you mean by "send AT command for reading that sms". If you already have the message why would you need to send an AT command?