Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (initial_char == '!') {
- while(1) {
- while (!Serial.available()); // wait for characters to arrive
- tmpchar=Serial.read();
- if (tmpchar != '\n') {
- strcat(msg, (const char*)tmpchar);
- } else {
- break; // break out of the while(1)
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement