feature: Including MQTT client
This commit is contained in:
@@ -269,6 +269,9 @@ class Syslog {
|
||||
if (_Socket == nullptr) {
|
||||
return;
|
||||
}
|
||||
// if (severity > _severityThresh) {
|
||||
// return;
|
||||
// }
|
||||
|
||||
char buffer[512];
|
||||
// V T H A P M D Msg
|
||||
@@ -286,6 +289,7 @@ class Syslog {
|
||||
if (_Socket) {
|
||||
return;
|
||||
}
|
||||
ESP_LOGI("UDP", "Starting syslog session to %s", target.getIp().c_str());
|
||||
_Facility = Facility::Syslog;
|
||||
_HostName = "ESP";
|
||||
_AppName = "App";
|
||||
@@ -301,4 +305,5 @@ class Syslog {
|
||||
static std::string _AppName;
|
||||
static UdpSocket *_Socket;
|
||||
static IpAdr _Target;
|
||||
static Severity _severityThresh;
|
||||
};
|
||||
Reference in New Issue
Block a user