Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Status
colourYellow
titlePENDING

Info

The MQTT is already implemented by the JavaScript library, you can see more on:

https://github.com/OpenDevice/OpenDevice/blob/master/opendevice-clients/opendevice-js/src/js/DeviceConnection.js

The implementation of the firmware already does all the abstraction of the communication, not having to worry about the low level details.

https://github.com/OpenDevice/opendevice-lib-arduino/blob/master/src/connections/MQTTWifiConnection.cpp


MQTT Protocol Specification:

http://docs.oasis-open.org/mqtt/mqtt/v3.1.1/os/mqtt-v3.1.1-os.html

Connection Error Status

Code
1Connection refused: Unacceptable protocol version
2Connection refused: Identifier rejected
3Connection refused: Server unavailable
4Connection refused: Bad user name or password
5Connection refused: Not authorized
6-255:Reserved for future use