veriak / ViroSMS

Use this library for work with Comm port on Windows and using AT Commands to Sending and Receiving one or multipart SMS(PDU, Unicode)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ViroSMS

Use this library for work with Comm port on Windows and using AT Commands to Sending and Receiving one or multipart SMS(PDU, Unicode)

#include "SMSEngine.h"

using namespace SMSEngine;

CSMSEngine *pSMSEngine = new CSMSEngine(_T("com1"), 9600);

if (pSMSEngine->CheckGSMModemActivity()) {
	char szIMEI[MAX_PATH];

	if (pSMSEngine->GetIMEI(szIMEI)) {
		if (pSMSEngine->SendUnicodeMessage("+989122222222", _T("Test SMS"))) {
			ReadMessageList ml;

			if (pSMSEngine->GetReadMessageList(&ml)) {
			}
		}
	}
}

delete pSMSEngine;	

About

Use this library for work with Comm port on Windows and using AT Commands to Sending and Receiving one or multipart SMS(PDU, Unicode)

License:Apache License 2.0


Languages

Language:C++ 99.5%Language:C 0.5%