#include <OzIDManager.h>
#include <Oz433MhzTransceiver.h>

OzIDManager* manager;
Oz433MhzTransceiver* oz433MhzTransceiver;

uint8_t receiverInterrupt = 1; // default value: INT 1 on D3
uint8_t transmitterPin = 2; // default value: D2

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

  manager = new OzIDManager;
  manager->_sendACK = true; 
  manager->_checksum = true; 

  OzCommunication::setIDManager(manager);

  oz433MhzTransceiver = new Oz433MhzTransceiver(receiverInterrupt, transmitterPin);

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

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

More information