Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void resposta() {
- while (SIM800L.available())
- {
- if (SIM800L.available() > 0)
- {
- Serial.write(SIM800L.read());
- }
- }
- }
- String retorno() {
- char resposta[500] = "";
- int cont = 0;
- int pos = 0;
- while ((pos < 500) && (String(resposta).indexOf("OK") == -1) && (cont < 2000));
- {
- if (SIM800L.available() > 0)
- {
- resposta[pos] = SIM800L.read();
- pos++;
- }
- cont ++;
- delay(10);
- }
- return String(resposta);
- }
Add Comment
Please, Sign In to add comment