Enquiry about using native AT commands to publish data to AWS iot | Telit Cinterion IoT Developer Community
January 9, 2020 - 4:58pm, 1207 views
Hi,
I'm wondering whether its possible to just use the native AT commands, without using the Java AT Command Extension - AT^SJMQTT, to publish data to AWS iot using the PLS62-W terminal. This is because I will be using a micrcontroller to send data to the terminal so that it can be published to the cloud using MQTT.
Many thanks
Hello,
The Java API for the module provides classes that can be used to implement any custom AT commands - the commands will be available on any interface as long as the MIDlet which implements them will work. This API was used in the example MIDlet that you probably refer to.
If you want to use your own MQTT libraries, you can do it and only use the module for the connections. You can use the module as the modem and utilize your own IP stack in your microcontroller or use the IP services available with AT commands where you can open a socket connection to the server and communicate with AT commands (for each send or receive operation) or make the connection transparent and just send receive/data over the provided connection.
Regards,
Bartłomiej
Hi,
Thanks for answering my query.
I'm currently trying to setup up an internet profile to connect my PLS62-W to a web server. I am following this guide "https://iot-developer.thalesgroup.com/tutorial/concept-board-internet-se..." to setup an internet connection.
After setting AT^SCFG="Tcp/WithURCs" to "on" , I have tried to configure a connection profile using "AT^SICS" with no luck.
AT^SICS=0,"conType","GPRS0"ERROR
AT+CMEE=2OK
AT^SICS=0,"conType","GPRS0"+CME ERROR: invalid index
I have tried to reset the PLS62-W terminal multiple ***** but the same error keeps occuring. Any help is appreciated.
Thanks
Hello,
This tutorial was written for a different module (EHS6). PLS62-W has a bit different logic for this. You should rather refer to the AT commands specification document. There are also examples (see this chapter: 10.15.2 Configuring an Internet Connection Profile). Please see below:
Best regards,
Bartłomiej