#include <OzIDManager.h>
#include <OzTemperatureController.h>

OzIDManager* manager;
OzTemperatureController* temperatureController;

void setup()
{
  Serial.begin(115200);

  manager = new OzIDManager;
  manager->_sendACK = true;
  manager->_checksum = true;
  
  OzCommunication::setIDManager(manager);

  temperatureController = new OzTemperatureController(A5, 9);

  int x=1;
  manager->sendLinkSetup();
  manager->PrintWelcomeLine(temperatureController, x++, "MyThermostat");
}

void loop()
{
  temperatureController->ownLoop();
  OzCommunication::communicate();
}

More information