-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmos.yml
More file actions
executable file
·157 lines (133 loc) · 6.31 KB
/
mos.yml
File metadata and controls
executable file
·157 lines (133 loc) · 6.31 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
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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
author: Author Name <your@email.here>
description: Your App description
version: 1.0
libs_version: 2.20.0
modules_version: 2.20.0
mongoose_os_version: 2.20.0
### There are some issues reported for ESP8266 and mJS library using Mongoose OS 2.20.0 (latest release)
### In this case it's better to use Mongoose OS 2.19.1 (previous release)
### To use the previous release change the version numbers for libs_version, modules_version and mongoose_os_version as in example below
#libs_version: 2.19.1
#modules_version: 2.19.1
#mongoose_os_version: 2.19.1
manifest_version: 2020-01-29
### A list of free-form string tags, used for internet search purpose
tags:
- mgos
- boilerplate
- c
- js
### In case of using some extra build variables uncomment section below
#build_vars:
### -->> In case of using some Mongoose OS build variables
#MGOS_LWIP_ENABLE_IPV4_NAT: 1
### -->> In case of using some SDK variables uncomment below
#ESP_IDF_SDKCONFIG_OPTS: >
#${build_vars.ESP_IDF_SDKCONFIG_OPTS}
### -->> In case of using an SPIRAM installed on to your MCU (relevant for the ESP32-WROVER)
#CONFIG_SPIRAM_SUPPORT=y
#CONFIG_SPIRAM_BOOT_INIT=y
#CONFIG_SPIRAM_CACHE_WORKAROUND=y
#CONFIG_SPI_MASTER_IN_IRAM=y
### ->> In case of an extra FLASH installed on to your MCU
### -->> 8Mb FLASH
#CONFIG_ESPTOOLPY_FLASHSIZE_4MB=
#CONFIG_ESPTOOLPY_FLASHSIZE_8MB=y
#CONFIG_ESPTOOLPY_FLASHSIZE=8MB
### -->> 16Mb FLASH
#CONFIG_ESPTOOLPY_FLASHSIZE_4MB=
#CONFIG_ESPTOOLPY_FLASHSIZE_16MB=y
#CONFIG_ESPTOOLPY_FLASHSIZE=16MB
### A list of .a libs or directories containing them
#binary_libs:
# - mylib/mylib.a
### In case of using additional preprocessor flags uncomment section below
#cdefs:
# FOO: BAR
### A list of directories with C/C++ or directories with those
includes:
- include
### A list of C/C++ source files or directories with those
sources:
- src
### A list of files or directories with files to be copied to the device's filesystem
filesystem:
- fs
### Library dependencies. Each library should have an location and optionally can have name and version
libs:
### --> REMOTE LIBS <-- ###
- location: https://github.com/mongoose-os-libs/core
- location: https://github.com/mongoose-os-libs/boards
- location: https://github.com/mongoose-os-libs/rpc-uart
- location: https://github.com/mongoose-os-libs/rpc-service-config
- location: https://github.com/mongoose-os-libs/rpc-service-fs
- location: https://github.com/mongoose-os-libs/rpc-service-ota
- location: https://github.com/mongoose-os-libs/wifi
# ->> If you aren't going to use mJS comment the line below
- location: https://github.com/mongoose-os-libs/mjs
#- location: https://github.com/mongoose-os-libs/ca-bundle
#- location: https://github.com/mongoose-os-libs/pppos
#- location: https://github.com/mongoose-os-libs/dash
#- location: https://github.com/mongoose-os-libs/sntp
#- location: https://github.com/mongoose-os-libs/mqtt
# ->> By default, the name of the library is equal to the repository name but in some cases it has different name
# -->> In this case you have to specify the exact name of the library
# --->> As an example for the library "telegram" located at https://github.com/kotelnikov/mgos_telegram the include will looks like below
#- location: https://github.com/kotelnikov/mgos_telegram
# name: telegram
### --> LOCAL LIBS <-- ###
# ->> It is possible to developing and include your own local libraries, this possibility relevant only if you're builds firmware locally
# ->> In this case including looks like specifying the local path for the library
#- location: lib-folder/lib-name
### Below defining a new configuration schema for the device
### and also override a previously defined configuration entries defined elsewhere (for example in default schema in libraries).
config_schema:
# ->> Below defining the developer own config for the application, this can be used in application code
# -->> As an advise you can store last state of the application and restore it after reboot
### --> APP OBJECT <-- ###
- ["app", "o", {title: "Application settings object"}]
- ["app.mem_slot", "s", "", {title: "The string for storing some data in configuration for using in application"}]
# ->> All configuration below is redefining the default configuration options stored in mos.yml's in included libraries
### --> WIFI AP <-- ###
- ["wifi.ap.enable", false]
- ["wifi.ap.ssid", "YourSSID"]
- ["wifi.ap.pass", "YourSecret"]
### ->> WIFI STA <-- ###
- ["wifi.sta.enable", false]
- ["wifi.sta.ssid", "YourSSID"]
- ["wifi.sta.pass", "YourSecret"]
### --> PPPOS <-- ###
# ->> If you are going to use PPPOS (internet access through the GSM module) uncomment lines below
# -->> then change gpio settings for you hardware and apn settings
# --_>> and also uncomment pppos dependency in libs section
#- ["pppos.enable", false]
#- ["pppos.uart_no", 1]
#- ["pppos.rx_gpio", 26]
#- ["pppos.tx_gpio", 27]
#- ["pppos.rst_gpio", 5]
#- ["pppos.rst_act", 0]
#- ["pppos.apn", "your_provider_apn"]
#- ["pppos.user", "your_provider_user"]
#- ["pppos.pass", "your_provider_secret"]
### --> MDASH <-- ###
# ->> If you are going to use mDash IoT Cloud uncomment lines below
# -->> and also uncomment dash dependency in libs section
#- ["dash.enable", false]
#- ["dash.token", "your_dash_token"]
### --> SNTP <-- ###
# ->> If you are going to use to use SNTP uncomment lines below
# -->> and also uncomment sntp dependency in libs section
#- ["sntp.server", "time.google.com"]
#- ["sys.tz_spec", "MSK-3"]
### --> MQTT <-- ###
# ->> If you are going to use MQTT uncomment lines below
# -->> and also uncomment mqtt dependency in libs section
#- ["mqtt.enable", false]
#- ["mqtt.server", "mqtt.eclipse.org:1883"]
#- ["mqtt.client_id", "your_uniq_mqtt_id"]
#- ["mqtt.user", "your_mqtt_user"]
#- ["mqtt.pass", "your_mqtt_secret"]
# ->> If you are going to use encrypted mqtt connection (using SSL) uncomment lines below
# -->> then change port number for server in mqtt.server option
# --_>> and also uncomment ca-bundle dependency in libs section
#- ["mqtt.ssl_ca_cert","ca.pem"]