Advertisement
baldengineer

why make it difficult?

Sep 17th, 2016
235
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.40 KB | None | 0 0
  1. void loop() {
  2.   //Read SIM800 output (if available) and print it in Arduino IDE Serial Monitor
  3.   if (serialSIM800.available()) {
  4.     Serial.write(serialSIM800.read());
  5.   }
  6.  
  7.   //Read Arduino IDE Serial Monitor inputs (if available) and send them to SIM800
  8.   if (Serial.available()) {
  9.     s=Serial.read();
  10.     if (s == ';')
  11.       serialSIM800.write(26);
  12.     else
  13.       serialSIM800.write(s);
  14.   }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement