File: GSM3ShieldV1BaseProvider.cpp

package info (click to toggle)
arduino 2%3A1.0.5%2Bdfsg2-4.1
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 40,336 kB
  • sloc: java: 57,238; cpp: 23,031; ansic: 13,695; makefile: 2,315; xml: 502; perl: 201; sh: 156; python: 62
file content (27 lines) | stat: -rw-r--r-- 527 bytes parent folder | download | duplicates (2)
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 const 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);
}