I’m having difficulty getting the nuts and bolts of the connection to work for sending the connection message. The BYOT documentation isn’t giving the detailed info for making a connection manually at the command level. It only references pre built libraries for everything but a command control modem. I can establish a connection to the socket:
Are you trying to send an HTTP POST command? That will not work because the BYOT connection uses MQTT, not HTTP. To get it to work you’d need to create a TCP connection and then send and handle the appropriate MQTT messages to establish MQTT communication.
To do this with the MQTT libraries we have you would need to provide your own networking implementation as mentioned here for the C library:
And here for the C++ library:
Basically it would require replacing the example Linux code for creating a TCP connection and reading and writing data with your own implementation using AT commands.
If you’d rather implement it all using AT commands that would require more work to support the MQTT protocol. I found this repo that seems to use AT commands for MQTT with a SIM800. Perhaps that would be helpful:
A different low level serial ‘AT command’ level ?
I have had some success using the ttyAMA0 / ttyS0 off the GPIO port of Raspberry Pi + pyserial + splitcsv in a few lines of python.
~ Andrew
@jburhenn I know it is a late thread, but the first link you posted is not working for me, it redirect to me to getting started login page.
So guys I am in the same boat I want to use a different microcontroller + Cellular modem to connect to cayenne, but I did not have enough luck to find some guide or similar to reach my goal