Parse this comma separated string to find GPIO pins on which we must enable DHT sensors. Seperators are space and comma. Can be empty, single GPIO pins, or a list: app.dht_gpio="" app.dht_gpio="5" app.dht_gpio="5,4,14" app.dht_gpio="5 4 14" app.dht_gpio="5, 4 14"
		
			
				
	
	
		
			65 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			65 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
| author: Pim van Pelt <pim@ipng.nl>
 | |
| description: A Mongoose-OS Light Switch
 | |
| version: 1.1
 | |
| platform: esp8266
 | |
| 
 | |
| libs_version: ${mos.version}
 | |
| modules_version: ${mos.version}
 | |
| mongoose_os_version: ${mos.version}
 | |
| 
 | |
| tags:
 | |
|   - c
 | |
| 
 | |
| # List of files / directories with C sources. No slashes at the end of dir names.
 | |
| sources:
 | |
|   - src
 | |
| 
 | |
| fs:
 | |
|   - fs/mqtt.pem
 | |
| 
 | |
| includes:
 | |
|   - include
 | |
| 
 | |
| # List of dirs. Files from these dirs will be copied to the device filesystem
 | |
| filesystem:
 | |
|   - fs
 | |
| 
 | |
| config_schema:
 | |
|   - ["wifi.ap.enable", false]
 | |
|   - ["wifi.sta.enable", true]
 | |
|   - ["wifi.sta.ssid", "dapches-iot"]
 | |
|   - ["wifi.sta.pass", "marielle"]
 | |
|   - ["debug.stderr_uart", -1]
 | |
|   - ["debug.stdout_uart", -1]
 | |
|   - ["debug.udp_log_addr", "192.168.1.1:1025"]
 | |
|   - ["mqtt.enable", true]
 | |
|   - ["http.enable", true]
 | |
|   - ["mqtt.server", "mqtt.ipng.nl:8883"]
 | |
|   - ["mqtt.ssl_ca_cert", "mqtt.pem"]
 | |
|   - ["rpc.mqtt.enable", true]
 | |
|   - ["app", "o", {title: "APP settings"}]
 | |
|   - ["app.hostname", "s", {title: "Device hostname"}]
 | |
|   - ["app.hostname", "sonoff-sv"]
 | |
|   - ["app.config", "s", {title: "Application specific config file"}]
 | |
|   - ["app.config", "sonoff-basic.json"]
 | |
|   - ["app.dht_gpio", "s", "5,4,14", {title: "Comma Separated list of GPIO pins to enable DHT22/AM2302 sensors on"}]
 | |
| 
 | |
| 
 | |
| #build_vars:
 | |
| #  FLASH_SIZE: 1048576
 | |
| 
 | |
| # List of libraries used by this app, in order of initialisation
 | |
| libs:
 | |
|   - origin: https://github.com/mongoose-os-libs/wifi
 | |
|   - origin: https://github.com/mongoose-os-libs/http-server
 | |
|   - origin: https://github.com/mongoose-os-libs/rpc-common
 | |
|   - 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-mqtt
 | |
|   - origin: https://github.com/mongoose-os-libs/mqtt
 | |
|   - origin: https://github.com/mongoose-os-libs/dht
 | |
|   - origin: libs/rpc-service-ota
 | |
| 
 | |
| # Used by the mos tool to catch mos binaries incompatible with this file format
 | |
| manifest_version: 2017-05-18
 |