OtaCore

In this class, we set up all of the basic network functionality for the specific feature modules, in addition to providing utility functions for logging and MQTT functionality. This class also contains the main command processor for commands received over MQTT:

#include <user_config.h>#include <SmingCore/SmingCore.h>

These two includes are required to make use of the Sming framework. With them, we include the main headers of the SDK (user_config.h) and those of Sming (SmingCore.h). This also defines a number of preprocessor statements, such as to use the open source Light-Weight IP stack (LWIP) and to deal with some issues in the official SDK.

Also of note is the esp_cplusplus.h header, which is indirectly included this way. Its source ...

Get Hands-On Embedded Programming with C++17 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.