forked from mongoose-os-libs/wifi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmos.yml
66 lines (56 loc) · 2.51 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
author: mongoose-os
description: WiFi support
type: lib
version: 1.0
platforms: [ cc3200, cc3220, esp32, esp8266 ]
sources:
- src
includes:
- include
config_schema:
- ["wifi", "o", {hide: true}]
- ["wifi.sta", "o", {title: "WiFi Station"}]
- ["wifi.sta.enable", "b", {title: "Connect to existing WiFi"}]
- ["wifi.sta.ssid", "s", {title: "SSID"}]
- ["wifi.sta.pass", "s", {title: "Password", type: "password"}]
- ["wifi.sta.user", "s", {title: "Username for WPA-PEAP mode"}]
- ["wifi.sta.anon_identity", "s", {title: "Anonymous identity for WPA mode"}]
- ["wifi.sta.cert", "s", {title: "Client certificate for WPA-TTLS mode"}]
- ["wifi.sta.key", "s", {title: "Client key for WPA-TTLS mode"}]
- ["wifi.sta.ca_cert", "s", {title: "CA certificate for WPA-enterprise mode"}]
- ["wifi.sta.ip", "s", {title: "Static IP Address"}]
- ["wifi.sta.netmask", "s", {title: "Static Netmask"}]
- ["wifi.sta.gw", "s", {title: "Static Default Gateway"}]
- ["wifi.sta.nameserver", "s", {title: "DNS Server"}]
- ["wifi.sta.dhcp_hostname", "s", {title: "Host name to include in DHCP requests"}]
- ["wifi.ap", "o", {title: "WiFi Access Point"}]
- ["wifi.ap.enable", "b", true, {title: "Enable"}]
- ["wifi.ap.ssid", "s", "Mongoose_??????", {title: "SSID"}]
- ["wifi.ap.pass", "s", "Mongoose", {title: "Password", type: "password"}]
- ["wifi.ap.hidden", "b", false, {title: "Hide SSID"}]
- ["wifi.ap.channel", "i", 6, {title: "Channel"}]
- ["wifi.ap.max_connections", "i", 10, {title: "Max connections"}]
- ["wifi.ap.ip", "s", "192.168.4.1", {title: "IP address"}]
- ["wifi.ap.netmask", "s", "255.255.255.0", {title: "Network Mask"}]
- ["wifi.ap.gw", "s", "192.168.4.1", {title: "Default Gateway"}]
- ["wifi.ap.dhcp_start", "s", "192.168.4.2", {title: "DHCP Start Address"}]
- ["wifi.ap.dhcp_end", "s", "192.168.4.100", {title: "DHCP End Address"}]
- ["wifi.ap.trigger_on_gpio", "i", -1, {title: "Trigger AP on low GPIO"}]
- ["wifi.ap.disable_after", "i", 0, {title: "If > 0, will disable itself after the specified number of seconds"}]
- ["wifi.ap.hostname", "s", "", {title: "If not empty, DNS server will resolve given host name to the IP address of AP"}]
build_vars:
MGOS_WIFI_ENABLE_AP_STA: 0
conds:
- when: build_vars.MGOS_WIFI_ENABLE_AP_STA == "1"
apply:
config_schema:
- ["wifi.ap.keep_enabled", "b", true, {title: "Keep AP enabled when station is on"}]
cdefs:
MGOS_WIFI_ENABLE_AP_STA: 1
cdefs:
MG_ENABLE_DNS_SERVER: 1
tags:
- c
- net
- wifi
manifest_version: 2017-09-29