Mercurial > code > home > repos > homeauto
comparison espNode/desk/src/mqtt.h @ 1678:7831b5de3572
espNode checkpoint
author | drewp@bigasterisk.com |
---|---|
date | Mon, 27 Sep 2021 22:59:39 -0700 |
parents | e4cf795d3677 |
children |
comparison
equal
deleted
inserted
replaced
1677:aa35ae7a1acc | 1678:7831b5de3572 |
---|---|
12 } | 12 } |
13 | 13 |
14 namespace mqtt { | 14 namespace mqtt { |
15 | 15 |
16 void Setup(); | 16 void Setup(); |
17 void Publish(std::string subtopic, std::string msg); | 17 void Publish(const std::string& subtopic, const std::string& msg); |
18 void StopTimer(); | 18 void StopTimer(); |
19 void ConnectToMqtt(); | 19 void ConnectToMqtt(); |
20 bool HasPendingMessage(); | 20 bool HasPendingMessage(); |
21 std::pair<std::string /*topic*/, std::vector<byte> /*payload*/> PopPendingMessage(); | 21 std::pair<std::string /*topic*/, std::vector<byte> /*payload*/> PopPendingMessage(); |
22 | 22 |