The P1-wifi-gateway can be built with either PlatformIO or Arduino 2.
https://docs.platformio.org/en/latest/integration/ide/pioide.html
- VSCode
- CLion (IntelliJ)
- Commandline
Within platformIO all the configuration is stored within platform.ini
. Therefore, no additional steps are needed before the actual build.
- VSCode: Hit the
build
button - CLion: Hit the
build
button - Commandline:
platformio run --environment espmxdevkit
The build is placed in .pio/build/espmxdevkit/firmware.bin
https://www.arduino.cc/en/software
In the preferences of Arduino IDE add the following board manager url
https://arduino.esp8266.com/stable/package_esp8266com_index.json
On the left panel in the "Board manager" install
esp866
by ESP8266 community | current version 3.1.2
Time
by Michael Margolis | version 1.6.1 (search for TimeLib)MyAlarm
by z01ne | version 1.1.2PubSubClient
by Nick O'Leary | version 2.8
Search for DOIT ESP-Mx DevKit (ESP8285)
Click Sketch > verify/compile
. The binary is placed in the temporary folder
- Linux on
/tmp/arduino/sketches/
- On a Mac use the 'Export compile binary' option in the Sketch menu. the binary will be placed in the build directory in your sketch folder
- Windows on ???
- Commandline:
platformio test --environment test
By default, the P1-wifi-gateway cannot be connected via USB. Therefore, the only option to install the new firmware is by uploading the binary in the Webinterface.