Yes its work.
I mean how to use the command prosesor? im not programer, but try to learn and understand thats script.
I think the command processoe its like script to get the message from sms and execute some command.
Ex were if sender same with phone number on script, it will search some string on sms ex GPIO12-ON, if it found command processor will execute via web api to turn on the gpio 12. if not found command prosessor will text to sender with some text. Its command prosesor like that? if yes how to do with your script, explain give me some sample. very very need this
BTW i have modificate ur script from 1st version with this line
==============================================
while (Program.IsEnabled){
if(!SerialPort.IsConnected){
Log("Connecting to GSM Modem on port " + Program.Option("Port").Value);
SerialPort
.WithName(Program.Option("Port").Value)
.OnStatusChanged(HandleStatusChanged)
.OnMessageReceived(HandleMessageReceived)
.OnStringReceived(HandleStringReceived)
.Connect(9600);
SerialPort.EndOfLine = "\r\n";
Log("Initialising GSM Modem");
Log("Turning local echo off");
SendCommand("ATE0"); // Local Echo off
Log("Switching to data mode");
SendCommand("AT+CMGF=1"); // SMS Mode
Log("Enabling message notifications");
SendCommand("AT+CNMI=2,1,0,0,1"); // Enable Message Notifications
// Issue command to list any unread messages stored on the gsm modem (assume read = deleted)
//Log("Getting any stored messages");
//SendCommand("AT+CMGL=\"REC UNREAD\""); // Unread
//SendCommand("AT+CSCS=\"PCCP437\""); // All
SendCommand("AT+CPMS=\"SM\""); // All
SendCommand("AT+CMGL=\"ALL\""); // All
SendCommand("AT+CMGD=1,4"); // All
}
// Stop excessive cpu usage
Pause(40);
{
// Issue command to list any unread messages stored on the gsm modem (assume read = deleted)
//Log("Getting any stored messages");
//SendCommand("AT+CMGL=\"REC UNREAD\""); // Unread
//SendCommand("AT+CSCS=\"PCCP437\""); // All
SendCommand("AT+CPMS=\"SM\""); // All
SendCommand("AT+CMGL=\"ALL\""); // All
SendCommand("AT+CMGD=1,4"); // All
}
Pause(40);
}
Program.GoBackground();
=======================================================
Tts works and auto check then get the message. with your original version its fail to get new message, so i modificate like thats.
Your second update i have some missing error report, if gsm sim not inserted message error with CME ERROR not shown, not like 1st version.
Try to search whats the problem.
But i think its not some big problem, coz the sender working normaly.
Good Job Sir