-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmos.yml
98 lines (89 loc) · 2.76 KB
/
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
author: mongoose-os
description: Arduino C/C++ basic API usage example
version: 1.0
libs_version: ${mos.version}
modules_version: ${mos.version}
mongoose_os_version: ${mos.version}
sources:
- src
filesystem:
- fs
libs:
# common mgos libs
- origin: https://github.com/mongoose-os-libs/boards
- origin: https://github.com/mongoose-os-libs/ca-bundle
- origin: https://github.com/mongoose-os-libs/i2c
- 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/wifi
- origin: https://github.com/mongoose-os-libs/dash
- origin: https://github.com/mongoose-os-libs/sntp
- origin: https://github.com/mongoose-os-libs/mjs
- origin: https://github.com/mongoose-os-libs/http-server
# libs necessary for the current app
- origin: https://github.com/mongoose-os-libs/arduino-compat
- origin: https://github.com/tripflex/captive-portal-wifi-stack
config_schema:
- ["wifi.ap.enable", true]
- ["dash.enable", true]
- ["dash.token", "67e0975010df36db79da8cac"]
- ["cportal.enable", true]
- ["cportal.any", false]
- [
"cportal.setup.copy",
"i",
0,
{
title: "Copy SSID and Password to this STA ID after succesful test ( 0 - wifi.sta | 1 - wifi.sta1 | 2 - wifi.sta2 )",
},
]
- [
"cportal.setup.timeout",
"i",
30,
{
title: "Timeout, in seconds, before considering a WiFi connection test as failed",
},
]
- [
"cportal.setup.disable",
"i",
0,
{
title: "Action to perform after successful test and copy/save values -- 0 - do nothing, 1 - Disable AP (wifi.ap.enable), 2 - Disable AP and Captive Portal (cportal.enable)",
},
]
- [
"cportal.setup.reboot",
"i",
0,
{
title: "0 to disable, or value (in seconds) to wait and then reboot device, after successful test (and copy/save values)",
},
]
- ["wifi.ap.ssid", "s", "Velib_??????", { title: "SSID" }]
- [
"wifi.ap.pass",
"s",
"captiveportal",
{ title: "Password", type: "password" },
]
# We include these with dummy values and set to false to prevent AP disconnect when scan due to device
# only being in AP mode, to switch to AP+STA mode. With some config set, it starts in AP+STA mode
- ["wifi.sta.enable", false]
- ["wifi.sta.ssid", "Dummy_SSID"]
- ["wifi.sta.pass", "Dummy_PASS"]
tags:
- c
- arduino
- arduino-core
manifest_version: 2017-05-18
platform: esp8266
cflags:
- "-Wno-unused-variable"
- "-Wno-unused-parameter"
- "-Wno-unused-function"
- "-Wno-error=unused-parameter"
- "-Wno-error=unused-variable"
- "-Wno-error=unused-function"