Thales IoT Development Tools
December 11, 2013 - 8:46am, 6932 views
Can somebody support on this topic. The messaging API is missing.
I started out with nothing... I still have most of it.
To not to waste modules resources the strategy is to provide the dedicated APIs only for the features to which this will add some value like e.g. better performance. Exchanging text messages is sufficient enough using AT commands that is why there is no dedicated API. You can do it like this:
ATCommand atc = new ATCommand(false);
// switch to the text mode
String at_cmd_response = atc.send("AT+CMGF=1\r");
// provide the receiver number
at_cmd_response = atc.send("AT+CMGS=\"+48123456789\"\r");
// provide the message text & confirm (terminate)
at_cmd_response = atc.send("Message \r\n text" + (char) 26);
// show the response on the screen
You can alo check our "How to send the text message" tutorial (it will be available soon).
Walking on water and developing software from a specification are easy - if both are frozen.
© 2013-2020 THALES DIS AIS Deutschland GmbH