Added MQTT and made sample_time configurable.

This commit is contained in:
2018-06-08 16:44:14 +02:00
parent c4f76112c3
commit a3e98e676e
2 changed files with 87 additions and 30 deletions

View File

@@ -8,6 +8,8 @@ libs_version: ${mos.version}
modules_version: ${mos.version}
mongoose_os_version: ${mos.version}
platform: esp32
config_schema:
- ["higrow", "o", {title: "LilyGo HiGrow ESP32 Plant Sensor v1 App Settings"}]
- ["higrow.deviceId", "s", "", {title: "DeviceId"}]
@@ -21,6 +23,11 @@ config_schema:
- ["wifi.ap.enable", false]
- ["device.id", "HiGrow_??????"]
- ["bt.dev_name", "HiGrowBT_??????"]
- ["mqtt.enable", true]
- ["higrow.send_mqtt", "b", true, {title: "Send data using MQTT"}]
- ["higrow.send_http", "b", false, {title: "Send data using HTTP"}]
- ["higrow.send_http_url", "s", "http://example.org/what/ever", {title: "Send data using HTTP"}]
- ["higrow.sample_time", "i", 10, {title: "Take a sample after that amount of seconds"}]
filesystem:
- fs
@@ -31,10 +38,12 @@ libs:
- origin: https://github.com/mongoose-os-libs/rpc-service-config
- origin: https://github.com/mongoose-os-libs/rpc-service-fs
- origin: https://github.com/mongoose-os-libs/rpc-uart
- origin: https://github.com/mongoose-os-libs/rpc-mqtt
- origin: https://github.com/mongoose-os-libs/wifi
- origin: https://github.com/mongoose-os-libs/dht
- origin: https://github.com/mongoose-os-libs/mjs
- origin: https://github.com/mongoose-os-libs/adc
- origin: https://github.com/mongoose-os-libs/mqtt
tags:
- js