-
-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathplatformio.ini
55 lines (51 loc) · 1.99 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
50
51
52
53
54
55
; PlatformIO Project Configuration File
;
; Build options: build flags, source filter
; Upload options: custom upload port, speed and extra flags
; Library options: dependencies, extra library storages
; Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html
[platformio]
extra_configs = secrets.ini
[env:bootstrapper]
platform = espressif8266@4.2.1 ; for ESP32 use: espressif32
;platform_packages = platformio/framework-arduinoespressif8266 @ https://github.com/esp8266/Arduino.git#0e5d358c3c15cff4b12fd89d9e605ff9fa0709a6
board = d1_mini ; for ESP32 Lolin D32 board use: lolin_d32
framework = arduino
build_flags =
'-D AUTHOR="DPsoftware"'
'-D SERIAL_RATE=115200'
'-D DEBUG_QUEUE_MSG=true'
'-D DISPLAY_ENABLED=false'
'-D WIFI_DEVICE_NAME="ArduinoBootstrapper"'
'-D MICROCONTROLLER_OTA_PORT=8199'
'-D WIFI_SIGNAL_STRENGTH=0'
'-D GATEWAY_IP="192.168.1.1"'
'-D SUBNET_IP="192.168.1.1"'
'-D MICROCONTROLLER_IP="192.168.1.99"'
'-D MQTT_SERVER_IP="192.168.1.3"'
'-D MQTT_SERVER_PORT="1883"'
'-D MAX_RECONNECT=500'
'-D MAX_JSON_OBJECT_SIZE=50'
'-D MQTT_MAX_PACKET_SIZE=1024'
'-D WIFI_SSID="${secrets.wifi_ssid}"'
'-D WIFI_PWD="${secrets.wifi_password}"'
'-D MQTT_USER="${secrets.mqtt_username}"'
'-D MQTT_PWD="${secrets.mqtt_password}"'
'-D OTA_PWD="${secrets.ota_password}"'
'-D ADDITIONAL_PARAM_TEXT="ADDITIONAL PARAM TEXT"'
monitor_port = COM4
monitor_speed = 115200
monitor_filters = esp8266_exception_decoder ; for ESP32 use: esp32_exception_decoder
board_build.f_cpu = 80000000L ; for ESP32 use: 240000000L, ESP8266 can run @160000000L if you need it
; upload_protocol = espota
; upload_port = 192.168.1.99
; upload_flags =
; --port=8268
; --auth=${secrets.ota_password} ; configure secrets.ini for OTA Upload, first upload using COM port is needed
upload_port = COM4
lib_deps =
bblanchon/ArduinoJson
knolleary/PubSubClient