Connect aws MQTT client using Cellular using PPP ( LWIP with PPOS)

anirudhgargi
Posts: 1
Joined: Thu Nov 02, 2017 1:20 pm

Connect aws MQTT client using Cellular using PPP ( LWIP with PPOS)

Postby anirudhgargi » Thu Nov 02, 2017 1:38 pm

Helllo,

I had a task in hand, was looking at the examples to get some references to start off.

How can i make the aws_iot talk to the cloud using the internet provided by the GSM Module using PPP ?

Idea is that the MQTT protocol in the aws IOT sample app make use of the network interface (lwip over PPP) to connect to AWS server.

I shall be doing:
0) Enable the support for PPP in LWIP from make menuconfig (needed ? i guess not. )
1) Removing the Wifi code from the aws_iot example code.
2) make sure that tcpip_adapter_init() is still called inside my app at init.
3) Run the PPPOS client in a separate task under app_main( this code will bind PPP to IP stack i am assuming)
4) Ensure that the modem is command mode.
5) Let the aws MQTT client (running in separate thread) attempt to connect to aws server.

Basic query are
1) Will the PPP bring up a IP interface on the esp 32 platfrom such that any app can make use of it via sockets ?
2) If there is another thread (aws MQTT client) will it make use of the same IP interface by itself or some mapping is needed to do so ?
3) I could not see the mapping of the AWS MQTT client with the N/W layer underneath ( no socket open/bind/read/close).
4) How it works in case of Wifi anybody can explain the flow.

Any more directions welcome.

Thanks a lot.

Who is online

Users browsing this forum: Bing [Bot] and 130 guests