-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmos.yml
More file actions
45 lines (40 loc) · 1.04 KB
/
mos.yml
File metadata and controls
45 lines (40 loc) · 1.04 KB
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
40
41
42
43
44
45
author: Taron Foxworth
description: Losant - detecting Motion Using a PIR sensor
# arch: PLATFORM
version: 1.0
manifest_version: 2017-05-18
platforms: [ cc3200, 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"]
- ["pins", "o", {title: "Pins layout"}]
- ["pins.led", "i", -1, {title: "LED GPIO pin"}]
- ["pins.button", "i", -1, {title: "Button GPIO pin"}]
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]
- when: mos.platform == "cc3200"
apply:
config_schema:
- ["pins.led", 64]
- ["pins.button", 15]
tags:
- js
- cloud
filesystem:
- fs
libs:
- origin: https://github.com/mongoose-os-libs/js-demo-bundle