#include <OzIDManager.h>
#include <OzSwitchController.h>
 
OzIDManager* manager;
OzSwitchController* switchController;
 
const int switchPin = 13;  //Default value: 13
 
void setup()
{
  Serial.begin(115200);
 
  manager = new OzIDManager;
  manager->_sendACK = true;
  manager->_checksum = true;

  OzCommunication::setIDManager(manager);
 
  switchController = new OzSwitchController(switchPin);
 
  int x=1;
  manager->sendLinkSetup();
  manager->PrintWelcomeLine(switchController, x++, "MySwitch");
}
 
void loop()
{
  OzCommunication::communicate();
}

More information