mirror of
https://github.com/anklimov/lighthub
synced 2025-12-07 04:09:49 +03:00
MCP23017 inputs
STATUSLED Compilation for all platforms WIFI_ENABLE option to allow wired connection for ESP Modbus, Syslog for ESP
This commit is contained in:
@@ -1,12 +1,20 @@
|
||||
#include "streamlog.h"
|
||||
#include <Arduino.h>
|
||||
|
||||
Streamlog::Streamlog (UARTClass * _serialPort, int _severity , Syslog * _syslog )
|
||||
#ifdef SYSLOG_ENABLE
|
||||
Streamlog::Streamlog (HardwareSerial * _serialPort, int _severity , Syslog * _syslog )
|
||||
{
|
||||
serialPort=_serialPort;
|
||||
severity=_severity;
|
||||
syslog=_syslog;
|
||||
}
|
||||
#else
|
||||
Streamlog::Streamlog (HardwareSerial * _serialPort, int _severity)
|
||||
{
|
||||
serialPort=_serialPort;
|
||||
severity=_severity;
|
||||
}
|
||||
#endif
|
||||
|
||||
void Streamlog::begin(unsigned long speed)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user