//Available SMS main function.
int GSM3ShieldV1SMSProvider::availableSMS()
{
	flagReadingSMS = 0;
	theGSM3ShieldV1ModemCore.openCommand(this,AVAILABLESMS);
	availableSMSContinue();
	return theGSM3ShieldV1ModemCore.getCommandError();
}
Ejemplo n.º 2
0
//Available SMS main function.
int SIM808SMSProvider::availableSMS()
{
	flagReadingSMS = 0;
	SIM808ModemCore_t.openCommand(this, AVAILABLESMS);
	availableSMSContinue();
	return SIM808ModemCore_t.getCommandError();
}
void GSM3ShieldV1SMSProvider::manageResponse(byte from, byte to)
{
	switch(theGSM3ShieldV1ModemCore.getOngoingCommand())
	{
/*		case XON:
			if (flagReadingSocket) 
				{
//					flagReadingSocket = 0;
					fullBufferSocket = (theGSM3ShieldV1ModemCore.theBuffer().availableBytes()<3);
				}
			else theGSM3ShieldV1ModemCore.openCommand(this,NONE);
			break;
*/		case NONE:
			theGSM3ShieldV1ModemCore.gss.cb.deleteToTheEnd(from);
			break;
		case BEGINSMS:
			beginSMSContinue();
			break;
		case ENDSMS:
			endSMSContinue();
			break;
		case AVAILABLESMS:
			availableSMSContinue();
			break;
		case FLUSHSMS:
			flushSMSContinue();
			break;
	}
}
Ejemplo n.º 4
0
void SIM808SMSProvider::manageResponse(int from, int to)
{
	switch (SIM808ModemCore_t.getOngoingCommand()){	
	    case NONE:
			SIM808ModemCore_t.gss.cb.deleteToTheEnd(from);
			break;
		case BEGINSMS:
			beginSMSContinue();
			break;
		case ENDSMS:
			endSMSContinue();
			break;
		case AVAILABLESMS:
			availableSMSContinue();
			break;
		case FLUSHSMS:
			flushSMSContinue();
			break;
	}
#if ANDYDEBUGx
	Serial.println("SMS getOngoingCommand...");
	Serial.println(SIM808ModemCore_t.getOngoingCommand());
#endif
}