-
Notifications
You must be signed in to change notification settings - Fork 0
/
platformio.ini
49 lines (45 loc) · 1.46 KB
/
platformio.ini
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
[platformio]
default_envs = release
; Default options
[env]
board = d1
platform = espressif8266
framework = arduino
upload_speed = 2000000 ; This is propably the ESP's highest possible baud rate without errors.
lib_deps =
SPI
adafruit/Adafruit BusIO @ ^1.13.2
adafruit/Adafruit Unified Sensor @ ^1.1.6
adafruit/Adafruit BMP280 Library @ ^2.6.5
adafruit/DHT sensor library @ ^1.4.4
arduino-libraries/ArduinoMqttClient @ ^0.1.6
bblanchon/ArduinoJson @ ^6.19.4
bblanchon/StreamUtils @ ^1.6.3
claws/BH1750 @ ^1.3.0
miguel5612/MQUnifiedsensor @ ^3.0.0
build_flags = ; Your secrets here
'-D WIFI_SSID="hello there"' ; WIFI SSID
'-D WIFI_PASS=""' ; WIFI passphrase
'-D WIFI_HOST="WemosD1R1-Marv"' ; Client hostname, which has to be RFC952 compliant.
'-D MQTT_BROK="10.10.0.126"' ; URL or IP address pointing towards the MQTT Broker.
'-D MQTT_PORT=1883' ; The port on which the Broker listens. Default is 1883.
'-D MQTT_USER="weatheruino"' ; The client ID for authentication with the MQTT Broker.
'-D MQTT_PASS="1234wazufygh"' ; The password for authentication with the MQTT Broker.
; Release version
[env:release]
; Debug version with prints to serial port
[env:debug]
build_type = debug
build_flags =
${env.build_flags}
-D DEBUG
; Debug version with more verbose prints to serial port
[env:debug_verbose]
build_type = debug
build_flags =
${env:debug.build_flags}
-D DEBUG_ESP_CORE
-D DEBUG_ESP_WIFI
-D DEBUG_ESP_PORT=Serial
-D DHT_DEBUG
-D BH1750_DEBUG