5

I am trying to connect a IoT node to a IBM IoT server via MQTT/GSM. I am using a Sim800L GSM module, and a serial USB device to send the commands to module from my computer. Later on, I will use the commands on Arduino to register my device. I'm sending following command to GSM Module:

AT+CIPSTART="TCP","[my-org-id].messaging.internetofthings.ibmcloud.com","my-port"

And I get the following output

CONNECT OK

But for connecting my device to BlueMix, I need to submit username and password. There isn't any documentation that I find on doing that, so i tried that:

AT+CIPSEND
>usernamepassword

SEND OK

And after a few seconds after sending that:

CONNECTION CLOSED

So I think that this is not a valid way to submitting user and password. But I couldn't find any documentation about authentication on MQTT with GSM.

codemonkey
  • 181
  • 8

1 Answers1

3

I've found this library useful to solve issues with authentication. If you encountered same issues on GSM modules with Arduino, it may help you as well:

https://github.com/elementzonline/SIM800_MQTT

codemonkey
  • 181
  • 8