Skip to content

Including your own code

Mitra Ardron edited this page Feb 17, 2025 · 1 revision

Adding your own code to FrugalIoT

At its simplest FrugalIoT can be configured by creating a _local.h file. TODO DOCUMENT HOW TO CREATE IT AND LINK

But ... for many cases it will want custom code.

The next level of complexity is to creating a pair of files that will be included if you #define LOCAL_DEV_WANT in your _local.h configuration.

There are templates local_dev.template_cpp and local_dev.template_h which should be copied to local_dev.cpp and local_dev.h.

These files include a fairly complex example of creating a control object.

Feel free to start a new issue if these processes are not clear.

For more complex cases - it will require forking the repository and adding to it. TODO DOCUMENT THIS AND HOW TO KEEP IT UP TO DATE.

Clone this wiki locally