|
|
@ -17,10 +17,13 @@ char _uartmqttBuffer[UART_MQTT_BUFFER_SIZE]; |
|
|
|
bool _uartmqttNewData = false; |
|
|
|
|
|
|
|
#if UART_MQTT_USE_SOFT
|
|
|
|
SoftwareSerial _uart_mqtt_serial(UART_MQTT_RX_PIN, UART_MQTT_TX_PIN, false, UART_MQTT_BUFFER_SIZE); |
|
|
|
#define UART_MQTT_PORT _uart_mqtt_serial
|
|
|
|
#include <SoftwareSerial.h>
|
|
|
|
|
|
|
|
SoftwareSerial _uart_mqtt_serial(UART_MQTT_RX_PIN, UART_MQTT_TX_PIN, false, UART_MQTT_BUFFER_SIZE); |
|
|
|
#define UART_MQTT_PORT _uart_mqtt_serial
|
|
|
|
#else
|
|
|
|
#define UART_MQTT_PORT UART_MQTT_HW_PORT
|
|
|
|
#define UART_MQTT_PORT UART_MQTT_HW_PORT
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------------------
|
|
|
|