MIDlet to access AWS IoT Cloud using MQTT PAHO Java Client | Telit Cinterion IoT Developer Community
March 28, 2018 - 5:40am, 3396 views
Hi!
I am working on making connection to AWS IoT Cloud and perform pub/sub. But then facing problem on midlet in order to access AWS IoT using MQTT PAHO Java. My question is are there any basic midlet java app that is ready-to-use which i can download and run? Or the MQTT Protocol – source code example in pdf 2017_10_AWS_MQTT_EHSx_Security (from the zip file at https://iot-developer.thalesgroup.com/showcase/concept-board-connection-...) will do?
Thanks.
Hello,
This is the only example we have. Can you describe what exactly is the problem and what module you use (ATI1 reply)?
Best regards,
Bartłomiej
Hi
I'm using ATI Cinterion EHS6 REVISION 03.001. What makes me confuse is which midlet app java should I run because the file of Paho Java Client has a lot of org file. Do i need to create a new midlet app java file?
Thanks.
Hello,
In the zip file I can see the java example file, jar library and the source code for this library. So there is no ready MIDlet and you need to create the project and attach the jar library or place the source code and use the example Main.java to create your own.
Regards,
Bartłomiej
Hi!
Do I need to included at command in the code? Is there any example? Or the MQTT Protocol – source code example will do?
Thanks
Hello,
Could you explain what AT commands you mean here? There is a file Main.java which is an example. You can create MIDlet project and paste this Main.java into it. There is a basic flow of exchanging MQTT messages.
For more examples regarding MQTT protocol you need to search MQTT sources on the Internet.
In these two articles there are instructions how to install and run the MIDlet with AT commands, how to place parameters to jad file of a MIDlet, how to create AWS account, prepare certificates etc. For more information about creating and installing certificates for the module you can see Java User's Guide document. I think that before going on with this MQTT example which is quite complex you should start from Java User's Guide to learn how to prepare environment build and run your own MIDlet and then how to play with certificates which will be needed for AWS connection.
Best regards,
Bartłomiej