RoboidControl-cpp/Posix/PosixMQTT.h
2025-06-29 13:01:31 +02:00

25 lines
443 B
C++

#pragma once
#if defined(__unix__) || defined(__APPLE__)
#include "Participants/ParticipantMQTT.h"
namespace RoboidControl {
class MQTTParticipant : public MQTTParticipantBase {
public:
MQTTParticipant(const char* ipAddress, int port = 1883);
protected:
void SetupTCP() override;
void SendTCP(int bufferSize) override;
int ReceiveTCP() override;
sockaddr_in remote_addr;
int sock;
};
} // namespace RoboidControl
#endif