User Tools

Site Tools


includeextlibary

This is an old revision of the document!


path to *.h files to be included can be added in platformio.ini together with other dependencies. See this example:

[env:nodemcuv2]
platform = espressif8266
board = nodemcuv2
framework = arduino
monitor_dtr = 0
monitor_rts = 0
monitor_speed = 9600
board_build.partitions = min_spiffs.csv
build_flags =
  -I "/PlatformIO/includes1"
  -I "/PlatformIO/includes2"
lib_deps =
  ESP8266WiFi
  ESP8266WebServer
  LittleFS

elegantota_esp.h

// top of main.cpp
const char* ssid = "ssid";
const char* password = "password";
const char* hostname = "hostname";

// inside loop
server.handleClient();
ElegantOTA.loop();
includeextlibary.1734278967.txt.gz · Last modified: (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki