How to use X-CUBE-CELLULAR Framework with the STEVAL-STWINKT1 and Quectel BG96 on STMOD+ connector? Framework confusion.
What I have:
- SMT32 CubeIDE 1.3.0
- the P-L496G-CELL02 eval kit with the Quectel BG96 on STMOD+ connector
- the X-cube-cellular examples for connecting the board with the cloud via MQTT
- an STEVAL-STWINKT1, which I want to connect via MQTT to our cloudservice
What I already did:
- With the P-L496G-CELL02 board, I used the MQTT client demonstration project, that is using the X-CUBE-CELLULAR-Framework and therein the network library api
- I modified this project to connect the board to our own cloud (via mqtt) and do some publishing of data, subscription to some topics, rpc calls etc - it works
- But this is only the first step
What is my goal?
- Using the Quectel BG96 on STMOD+ connector with the STEVAL-STWINKT1. Connecting the board to our cloud via MQTT and publish some sensor data.
Problem:
- the example project STWINCELL, which comes with the STEVAL-STWINKT1 implements a connection to an AWS cloud
- the AWS example is NOT BASED on the X-CUBE-CELLULAR framework and differs in the framework architecture significantly. Why did you use two different approaches?? This makes it very hard now - because I already solved the task (connecting to our cloud) with the X-CUBE-CELLULAR-Framework and the P-L496G-CELL02.
Questions:
- What would you suggest? What is the best approach to realize an MQTT connection with the STWINKT? I see two approaches:
- modifying the AWS example an get rid of all the AWS specific stuff to establish a simple MQTT connection to a server
- or are there examples projects for the STWINKT1 using the X-CUBE-CELLULAR add-on that I can use as a starting point? The X-CUBE-CELLULAR would definitely be my favorite solution, as I expect, that ST will care for this framework in future, or am I wrong.
What would be the more future proof path? Adapting the AWS-cloud example or using X-CUBE-CELLULAR as base framework?
Thanks for your help and best regards
Patrick
