You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Common Library does a lot for you.
It initializes the knx stack, reads memory and check if the stored Application is compatible to the one which it is expecting.
When you want to use it your main.cpp will look like this:
#include<Arduino.h>
#include"OpenKNX.h"//Include the Common
#include"LogModule.h"//Include your own Modulevoidsetup()
{
//you can use firmwareRevision for changes where the //KnxProd will be compatible withconstuint8_t firmwareRevision = 0;
openknx.init(firmwareRevision);
//Add your own Module and give it an ID
openknx.addModule(1, newLogModule());
//set it up
openknx.setup();
//and thats all!
}
voidloop()
{
//let openknx do the magic in a loop
openknx.loop();
}