Skip to content

Instantly share code, notes, and snippets.

#include <SoftwareSerial.h>
#define DEBUG true
SoftwareSerial mySerial(10,11 );// RX, TX
String data[5];
String state,timegps,latitude,longitude;
String Operator,Balance;
String Phone = "0912xxxxxxx";
String sendData (String command , const int timeout ,boolean debug)
{
const unsigned char shmtable[6][12]={
{11,10,10,9,9,9,8,9,9,10,11,9},
{20,20,21,21,22,22,22,22,21,21,20,19},
{11,10,10,9,9,9,8,9,9,10,11,10},
{20,20,21,21,22,22,22,22,21,21,20,19},
{12,11,11,10,10,10,9,10,10,11,12,10},
{19,19,20,20,21,21,21,21,20,20,19,18}};
const unsigned char miltable[6][12]={
{20,19,19,19,20,20,21,21,21,21,20,20},