1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-10-19 21:09:48 +03:00

GSM library to format 1.5 rev.2

This commit is contained in:
Cristian Maglie
2013-12-27 01:21:00 +01:00
parent 6923cc9c39
commit d930e22436
67 changed files with 8 additions and 10 deletions

View File

@@ -0,0 +1,27 @@
#include <GSM3ShieldV1BaseProvider.h>
#include <GSM3ShieldV1ModemCore.h>
#include <Arduino.h>
// Returns 0 if last command is still executing
// 1 if success
// >1 if error
int GSM3ShieldV1BaseProvider::ready()
{
theGSM3ShieldV1ModemCore.manageReceivedData();
return theGSM3ShieldV1ModemCore.getCommandError();
};
void GSM3ShieldV1BaseProvider::prepareAuxLocate(PROGMEM prog_char str[], char auxLocate[])
{
int i=0;
char c;
do
{
c=pgm_read_byte_near(str + i);
auxLocate[i]=c;
i++;
} while (c!=0);
}