83d6b40b2033405a066c021820734fc022a76fd6
Usage of the esp8266boilerplate project in your own Arduino ESP8266 projects
Wolfgang Hottgenroth woho@hottis.de
- Create an Arduino ESP8266 project in Sloeber
- Add esp8266boilerplate as submodule to your project:
git submodule init
git submodule add git@gitlab.com:wolutator/esp8266boilerplate.git
- Copy
ConfigGenerator/ConfigDataStructure.py-exampleinto your project directory, rename it toConfigDataStructure.py - Edit
ConfigDataStructure.pyaccording to your requirements - Change into directory ConfigGenerator and run
configGen.sh, it generates the configuration code for your projects into your project directory (filesconfiguration.cppandconfiguration.h, do not edit these files) - Copy
defines.h-exampleinto your project directory, rename it todefines.hand edit it according to your requirements - In to main cpp file of your project you have the functions
setup()andloop(). Edit this file and callmainSetup()from thesetup()function andmainLoop()from theloop()function. Do not change anything else in this file. - Add the directory
esp8266boilerplateas an include and a source location in the properties of your project. - Create all the code you need for you application. Call your own main setup function
setupApplication()and your own main loop functionloopApplication(). These functions will be called via mainSetup and mainLoop when the system is running in production (in contrast to configuration) mode.
Description
Languages
C++
51.3%
Python
30.4%
C
15.2%
Shell
3.1%