RoboidControl-cpp/Arduino/ArduinoParticipant.h

22 lines
426 B
C++

#pragma once
#if defined(ARDUINO)
#include "Participants/ParticipantUDP.h"
namespace RoboidControl {
class ParticipantUDP : public ParticipantUDPGeneric {
public:
void Setup();
void Receive();
bool SendTo(RemoteParticipantUDP* remoteParticipant, int bufferSize);
bool Publish(IMessage* msg);
protected:
char* broadcastIpAddress = nullptr;
void GetBroadcastAddress();
};
} // namespace RoboidControl
#endif