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
In your main.cpp include the stack with #include "knx.h" in the first line.
If your platform is supported by the stack it will create automaticly an instance of knx.
Also add some stuff to make the stack work.
#include<Arduino.h>
#include<knx.h>voidsetup()
{
//read memory and restore
knx.readMemory();
if (knx.configured())
{
//read parameters and setup your device
}
//start stack
knx.start();
}
voidloop()
{
//needed to do knx stuff
knx.loop();
//do nothing if not configuredif (!knx.configured())
return;
//do some stuff if your device is configured
}