Hello!
We are trying to send MQTT messages to a hosted mosquito broker via AT commands using the nRF9160.
We are trying to avoid programming the nrf9160 chip, as we're using an ESP32 master to relay all commands via UART. Previously, we used PPPoS on another module, but it seems this module is not yet supported? The only other way we can think of, is sending the MQTT messages through HTTP, but having no luck applying any curl http headers.
An example of what we're doing with no luck is:
at#xsocket=3,1,1
#XSOCKET: 3,6
OK
at#xtcpconn=3,"node02.myqtthub.com",1883
#XTCPCONN: 1
OK
at#xtcpsend=3
>POST /login
Host: node02.myqtthub.com:1883
Content-Type: application/json
Content-Length: 92
{"clientId":"HQC-TEST-519","userName":"jonhqc","password":"test1234","cleanSession":"false"}
Which in my understanding is applying a rest api via http as in this guide - https://support.asplhosting.com/t/rest-api-to-manage-myqtthub-service/86
Is there a better approach here? Simplicity is key.