From ac2cbddc4f85923e98fa6ac85593df0581c2cc42 Mon Sep 17 00:00:00 2001 From: OliE Date: Sat, 26 Oct 2019 11:43:20 +0200 Subject: [PATCH] Created MQTT support (markdown) --- MQTT-support.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 MQTT-support.md diff --git a/MQTT-support.md b/MQTT-support.md new file mode 100644 index 0000000..7d9ac3c --- /dev/null +++ b/MQTT-support.md @@ -0,0 +1,29 @@ +The payload is formatted in JSON notation. The measurement reference is the Unix date/time in milliseconds. + +Currently only the weight of an user is transmitted. You could test the openScale sync MQTT support for example using [CloudMQTT](https://www.cloudmqtt.com/). + +_Note: openScale supported only MQTT 3.1 **not** MQTT 5.x_ + +**Adding a measurement** + +topic `openScaleSync/measurements/insert` + +payload `{"date":1572082380000,"weight":80.0}` + +**Update a measurement** + +topic `openScaleSync/measurements/update` + +payload `{"date":1572082380000,"weight":120.0}` + +**Delete a measurement** + +topic `openScaleSync/measurements/delete` + +payload `{"date":1572082380000}` + +**Clear all measurements** + +topic `openScaleSync/measurements/clear` + +payload `true`