aboutsummaryrefslogtreecommitdiff
path: root/libraries/GSM/GSM3ShieldV1BaseProvider.cpp
blob: d63967be3b0add5619c874f21f97e7eb7b1b195c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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);
}