28 lines
543 B
C++
28 lines
543 B
C++
#pragma once
|
|
#include "Thing.h"
|
|
|
|
namespace RoboidControl {
|
|
|
|
class RemoteParticipant {
|
|
public:
|
|
const char *ipAddress = "0.0.0.0";
|
|
int port = 0;
|
|
|
|
unsigned char networkId = 0;
|
|
|
|
RemoteParticipant();
|
|
RemoteParticipant(const char *ipAddress, int port);
|
|
~RemoteParticipant();
|
|
|
|
protected:
|
|
std::list<Thing *> things;
|
|
|
|
public:
|
|
Thing *Get(unsigned char networkId, unsigned char thingId);
|
|
void Add(Thing *thing, bool checkId = true);
|
|
void Remove(Thing *thing);
|
|
void UpdateAll(unsigned long currentTimeMs);
|
|
};
|
|
|
|
} // namespace Control
|