diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2015-10-24 20:27:00 +0200 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2015-10-24 20:27:00 +0200 |
commit | 76398c4dbe6ab2b657294ee05f5716c5689b8763 (patch) | |
tree | df799752ef25e5be518c19cd6a928e949d60d2ba /diller/README.md | |
parent | d47cfeb625ffcd08e6391b52f05504886bc54338 (diff) | |
download | esp-playground-76398c4dbe6ab2b657294ee05f5716c5689b8763.tar.gz esp-playground-76398c4dbe6ab2b657294ee05f5716c5689b8763.tar.bz2 esp-playground-76398c4dbe6ab2b657294ee05f5716c5689b8763.tar.xz esp-playground-76398c4dbe6ab2b657294ee05f5716c5689b8763.zip |
o Renaming 'sensor' to property.
o Adding support for configuring wlan SSID and password.
Diffstat (limited to 'diller/README.md')
-rw-r--r-- | diller/README.md | 56 |
1 files changed, 28 insertions, 28 deletions
diff --git a/diller/README.md b/diller/README.md index b2d96f8..b454862 100644 --- a/diller/README.md +++ b/diller/README.md @@ -4,18 +4,18 @@ Is registration required? Can't the firmware just send an update without a value # MQTT -## Device / Sensor hierarchy - - /<device id> - /sensor - /<sensor id> - /value - /type (retained) - /name (retained) - /description (retained) - /type TODO: remove? - /status TODO: remove? type specified what the message looks like - /firmware For updating the device's firmware +## Device / Property hierarchy + + /<device id> + /property + /<property id> + /value + /type (retained) + /name (retained) + /description (retained) + /type TODO: remove? + /status TODO: remove? type specified what the message looks like + /firmware For updating the device's firmware # Diller serial API @@ -25,13 +25,13 @@ Request: Update or query network settings. If no paramters are given, no changes are done. If ip is set to a blank string, it will use DHCP. - network [ip=..] [gateway=..] [netmask=..] + network [ip=..] [gateway=..] [netmask=..] Response: The command will always return the current values. - - ok ip=.. gateway=.. netmask=.. netmask=.. + + ok ip=.. gateway=.. netmask=.. netmask=.. ## Wlan settings @@ -39,21 +39,21 @@ Request: Update or query wlan settings. If no paramters are given, no changes are done. - wlan [ssid=..] [password=..] + wlan [ssid=..] [password=..] Response: The command will always return the current values. - - ok ssid=.. + + ok ssid=.. ## Set property value -TODO: Implement description? A longer string describing the sensor. +TODO: Implement description? A longer string describing the property. Request: - set-property id=.. [value=..] [name=..] + set-property id=.. [value=..] [name=..] Type examples: @@ -64,7 +64,7 @@ Type examples: Response: - ok + ok The value might not be updated directly, but may be buffered on the device if it is not yet connected. @@ -72,23 +72,23 @@ The value might not be updated directly, but may be buffered on the device if it Request: - reset + reset Response - ok + ok # Example session - require('main').main(); + require('main').main(); Get the current network configuration to update the Arduino's LCD display - > network - < ok ip=1.3.3.7 netmask=255.255.255.0 gateway=1.3.3.1 ssid=awesome + > network + < ok ip=1.3.3.7 netmask=255.255.255.0 gateway=1.3.3.1 ssid=awesome Register the properties. This is done on every boot to keep the server in sync with the firmware's features. Old properties will not be removed. - > set-property id=temp-0 value=12.3 type=temperature name=Water - < ok + > set-property id=temp-0 value=12.3 type=temperature name=Water + < ok |