fix for standalone simulating mqtt

This commit is contained in:
proddy
2020-10-17 16:54:39 +02:00
parent cafdb6f666
commit 4f0f476407
2 changed files with 8 additions and 4 deletions

View File

@@ -77,13 +77,13 @@ class AsyncMqttClient {
void disconnect(bool force = false) {
}
uint16_t subscribe(const char * topic, uint8_t qos) {
return 0;
return 1;
}
uint16_t unsubscribe(const char * topic) {
return 0;
return 1;
}
uint16_t publish(const char * topic, uint8_t qos, bool retain, const char * payload = nullptr, size_t length = 0, bool dup = false, uint16_t message_id = 0) {
return 0;
return 1;
}
const char * getClientId() {