MQTT
PENDING
The MQTT is already implemented by the JavaScript library, you can see more on:
The implementation of the firmware already does all the abstraction of the communication, not having to worry about the low level details.
MQTT Protocol Specification:
http://docs.oasis-open.org/mqtt/mqtt/v3.1.1/os/mqtt-v3.1.1-os.html
Connection Error Status
Code | |
---|---|
1 | Connection refused: Unacceptable protocol version |
2 | Connection refused: Identifier rejected |
3 | Connection refused: Server unavailable |
4 | Connection refused: Bad user name or password |
5 | Connection refused: Not authorized |
6-255: | Reserved for future use |