mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
changes to compile standalone
This commit is contained in:
@@ -197,7 +197,7 @@ const char * MqttClient::getClientId() const {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void MqttClient::loop() {
|
void MqttClient::loop() {
|
||||||
switch ((State)_state) { // TOOD modified by proddy for EMS-ESP compiling on osx
|
switch ((State)_state) { // modified by proddy for EMS-ESP compiling standalone
|
||||||
case State::disconnected:
|
case State::disconnected:
|
||||||
#if defined(ARDUINO_ARCH_ESP32)
|
#if defined(ARDUINO_ARCH_ESP32)
|
||||||
if (_useInternalTask == espMqttClientTypes::UseInternalTask::YES) {
|
if (_useInternalTask == espMqttClientTypes::UseInternalTask::YES) {
|
||||||
|
|||||||
@@ -123,7 +123,7 @@ class MqttClient {
|
|||||||
#elif defined(ARDUINO_ARCH_ESP8266) && EMC_ESP8266_MULTITHREADING
|
#elif defined(ARDUINO_ARCH_ESP8266) && EMC_ESP8266_MULTITHREADING
|
||||||
std::atomic<bool> _xSemaphore = false;
|
std::atomic<bool> _xSemaphore = false;
|
||||||
#elif defined(__linux__)
|
#elif defined(__linux__)
|
||||||
mutable std::mutex mtx; // TOOD modified by proddy for EMS-ESP
|
mutable std::mutex mtx; // modified by proddy for EMS-ESP compiling standalone
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
uint8_t _rxBuffer[EMC_RX_BUFFER_SIZE];
|
uint8_t _rxBuffer[EMC_RX_BUFFER_SIZE];
|
||||||
|
|||||||
Reference in New Issue
Block a user