#pragma once #include "../LocalParticipant.h" // #if defined(HAS_WIFI) // #include // #endif namespace RoboidControl { namespace EspIdf { class LocalParticipant : public RoboidControl::LocalParticipant { public: void Setup(int localPort, const char* remoteIpAddress, int remotePort); void Receive(); bool Send(Participant* remoteParticipant, int bufferSize); bool Publish(IMessage* msg); protected: const char* remoteIpAddress = nullptr; unsigned short remotePort = 0; char* broadcastIpAddress = nullptr; int sockfd; void GetBroadcastAddress(); }; } // namespace EspIdf } // namespace RoboidControl