23 char topic[MAXTOPICLENGTH];
24 std::vector<std::array<uint8_t, 6>> subscribers;
25 char filename[MAXTOPICLENGTH*2];
26 QueueHandle_t messagesQueue;
34 const char* getTopic()
const;
35 int getSubscribersAmount()
const;
36 const std::vector<std::array<uint8_t, 6>>& getSubscribers()
const;
37 const char* getFilename()
const;
38 void setFilename(
const char* filename);
39 bool subscribe(
const uint8_t *mac)
const;
40 bool subscribe(
const std::array<uint8_t, 6> &mac)
const;
41 bool unsubscribe(
const uint8_t *mac);
42 bool isSubscribed(
const uint8_t *mac)
const;
43 std::string getSubscribersString()
const;
45 void dispatchMessages()
const;
46 void publish(
PublishContent pubContent, std::vector<std::array<uint8_t, 6>>& alreadySentMacs)
const;
47 bool isPublishable(
const char *publishTopic)
const;
49 std::string toString()
const;
Structure that contains the fields used by a publish message, apart from those inherited from the Mes...