Skip to Content
0
Former Member
Oct 11, 2017 at 01:08 PM

Why am I unable to connect to my IoT device via the MQTT WebSockets API?

278 Views

I am no longer able to connect to an IoT device via the MQTT WebSockets API. It had been working fine a few weeks ago from both the IoT service cockpit and a python script.

  1. Open Internet of Things Service Cockpit
  2. Select 'View Registered Devices and Device Types'
  3. Select 'Devices'
  4. Select device to test
  5. Copy 'ID' (i.e. 1234abcd-1234-1234-1234-1234abcd5678)
  6. Open Message Management Service Cockpit
  7. Open Internet of Things Service Cockpit
  8. Select 'Send and view messages or perform other actions'
  9. Select 'Messaging through MQTT over WS'
  10. Paste the 'Device ID'
  11. Select 'Connect'
  12. Message Box shows ' websocket failure AMQJS0006E Bad Connack return code: 2 Connection Refused: identifier rejected.'