Hi all,
I spent a few hours researching how to communicate with AWS (using MQTT) through nrf52840 (I’m using the PCA10056 for first developments), but I don’t understand at all if it is possible or not.
The idea is to use nRF52840 as a bluetooth central/peripheral and at the same time use it to send MQTT packets to AWS using wifi (i.e. ESP8266 or ESP32) or 4G modules that give acces to Internet. I had a look to the example "iot_lwip_mqtt_subscriber_pca10056_s140" of the SDK 15.3 but I don't have clear if it's possible to use this example without using 6LoWPAN over BLE and which layers have to be implemented in Nordic and which not, so let me expose my doubts:
- Is it possible to implement what I proposed using the nrf52840?
- If we use an ESP32 as a peripheral of nrf52840 to get internet access, in which of them I have to implement the SSL/TLS layer and MQTT protocol? I see that in the mqtt subscriber SDK example it’s implemented all the layers included TCP and TLS/SSL, but I suppose that this is due to it’s using the 6LoWPAN, so there’s a way to use this example replacing the 6LoWPAN and using ESP32 or other communication module just to send the data?
- Do you think that, in this case, is better to use as a communications core the ESP32 (or other communications module) and use as a bluetooth central/peripheral the nrf52840?
Any help would be very appreciated. Thanks in advance.