-
Notifications
You must be signed in to change notification settings - Fork 1
/
mos.yml
39 lines (33 loc) · 851 Bytes
/
mos.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
author: Utkarsh Verma (utkarshverma@protonmail.com)
description: App to send ESP32/8266 temperature readings to Losant periodically.
# arch: PLATFORM
version: 1.0
manifest_version: 2017-05-18
platforms: [ esp32, esp8266 ]
libs_version: ${mos.version}
modules_version: ${mos.version}
mongoose_os_version: ${mos.version}
config_schema:
- ["i2c.enable", true]
- ["mqtt.server", "broker.losant.com:8883"]
- ["mqtt.enable", true]
- ["mqtt.ssl_ca_cert", "ca.pem"]
conds:
- when: mos.platform == "esp32"
apply:
config_schema:
- ["pins.led", 21]
- ["pins.button", 0]
- when: mos.platform == "esp8266"
apply:
config_schema:
- ["pins.led", 2]
- ["pins.button", 0]
tags:
- js
- cloud
- temperature
filesystem:
- fs
libs:
- origin: https://github.com/mongoose-os-libs/js-demo-bundle