Charmed Quark Systems, Ltd. - Support Forums and Community

Full Version: Updated SMS Driver
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I found an issue with the SMS driver and was able to fix it.

Added:
  • SignalStrength - Calculated based on the RSSI
  • CallerID - extracts the caller id from the SMS message and stores it. When you clear the NewMessage or NewCommand flag, the CallerID field will be blank.
Fixed:
  • NewMessage - This was an existing a R/W Boolean field. When a new message (+M:MESSAGE) is received, this field will be True and you will see the message text in the ReceiveMessage field. The NewMessage field will remain True until you change it back to False, at which point the ReceiveMessage field will be blank
  • NewCommand - This was an existing a R/W Boolean field. When a new command (+C:COMMAND) is received, this field will be True and you will see the command text in the ReceiveCommand field. The NewCommand will remain True until you change it back to False, at which point the ReceiveCommand field will be cleared out.
These changes will allow you to set field triggers (Is Field Change For) on the NewMessage and NewCommand fields and take appropriate actions as you see fit.

The addition of CallerID will allow you to do many things, once of which is securing the processing of commands and restricting it based off of the CallerID value.