Skip to content

Commit

Permalink
Update convention.md
Browse files Browse the repository at this point in the history
Co-Authored-By: davidgraeff <[email protected]>
  • Loading branch information
Thomas Dietrich and davidgraeff committed Nov 6, 2018
1 parent c056ccc commit 8b001ee
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion convention.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ The underscore (`_`) is used and reserved for Homie *node arrays*.
### Payload

Every MQTT message payload MUST be sent as UTF-8 encoded string.
A numeric data type MUST contain a numeric value published as string with the decimal separator, if any, being a dot.
A numeric data type MUST be converted to a literal string with the dot character as the decimal separator for the `float` data type.
An empty message is not valid as payload for numeric data types.
The value published as payload MUST be valid for the respective property/attribute type as per the convention definition below.
Booleans MUST be converted to "true" or "false".

### QoS and retained messages
Expand Down

0 comments on commit 8b001ee

Please sign in to comment.