mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
fix for standalone simulating mqtt
This commit is contained in:
@@ -309,7 +309,7 @@ class Handler {
|
|||||||
*/
|
*/
|
||||||
class Logger {
|
class Logger {
|
||||||
public:
|
public:
|
||||||
/**
|
/**
|
||||||
* This is the maximum length of any log message.
|
* This is the maximum length of any log message.
|
||||||
*
|
*
|
||||||
* Determines the size of the buffer used for format string
|
* Determines the size of the buffer used for format string
|
||||||
@@ -317,7 +317,11 @@ class Logger {
|
|||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
|
#if defined(EMSESP_STANDALONE)
|
||||||
|
static constexpr size_t MAX_LOG_LENGTH = 500;
|
||||||
|
#else
|
||||||
static constexpr size_t MAX_LOG_LENGTH = 255;
|
static constexpr size_t MAX_LOG_LENGTH = 255;
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a new logger with the given name and logging facility.
|
* Create a new logger with the given name and logging facility.
|
||||||
|
|||||||
@@ -77,13 +77,13 @@ class AsyncMqttClient {
|
|||||||
void disconnect(bool force = false) {
|
void disconnect(bool force = false) {
|
||||||
}
|
}
|
||||||
uint16_t subscribe(const char * topic, uint8_t qos) {
|
uint16_t subscribe(const char * topic, uint8_t qos) {
|
||||||
return 0;
|
return 1;
|
||||||
}
|
}
|
||||||
uint16_t unsubscribe(const char * topic) {
|
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) {
|
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() {
|
const char * getClientId() {
|
||||||
|
|||||||
Reference in New Issue
Block a user