2013-03-11 12:17:08 +01:00
|
|
|
#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();
|
|
|
|
};
|
|
|
|
|
2014-10-09 23:47:46 +02:00
|
|
|
void GSM3ShieldV1BaseProvider::prepareAuxLocate(PGM_P str, char auxLocate[])
|
2013-03-11 12:17:08 +01:00
|
|
|
{
|
|
|
|
int i=0;
|
|
|
|
char c;
|
|
|
|
|
|
|
|
do
|
|
|
|
{
|
|
|
|
c=pgm_read_byte_near(str + i);
|
|
|
|
auxLocate[i]=c;
|
|
|
|
i++;
|
|
|
|
} while (c!=0);
|
|
|
|
}
|
|
|
|
|