January 2019
Intermediate to advanced
458 pages
10h 35m
English
In this section, we will look at the basic source code for this project, starting with the core module, OtaCore, and continuing with the BaseModule class, which all firmware modules register with. Finally, we look at the PlantModule class itself, which contains the business logic for the project requirements that we discussed in this chapter.
Also of note is that for this project we enabled both the rBoot bootmanager and the rBoot Big Flash options in the project Makefile. What this does is create four 1 MB blocks in the 4 MB of ROM that we have available on our ESP8266 module (which is all ESP-12E/F modules), of which two are used for firmware images and the remaining two for file storage (using the SPIFFS filesystem). ...