#include <OzIDManager.h>
#include <OzButtonController.h>
 
OzIDManager* manager;
OzButtonController* buttonController;
 
const int buttonPin    = 2;
const int edgeTypeMode = CHANGE;
 
void setup()
{
  Serial.begin(115200);
 
  manager = new OzIDManager;
  manager->_sendACK = true;
  manager->_checksum = true;

  OzCommunication::setIDManager(manager);
 
  buttonController = new OzButtonController(buttonPin, edgeTypeMode);
   
  int x=1;
  manager->sendLinkSetup();
  manager->PrintWelcomeLine(buttonController, x++, "MyButton");
}
 
void loop()
{
  OzCommunication::communicate();
  buttonController->update();
}

More information