dirkx / tee-log

Send Serial logging (also) to telnet, syslog, MQTT or a browser. To ease networked Arduino debugging.
Apache License 2.0
5 stars 5 forks source link

Syslog hostname need todynamically change in the app. #5

Open dheco75 opened 1 year ago

dheco75 commented 1 year ago

Thank you for a great application.

How can I pass the syslog SERVER_HOST as a string that is derived from input in my application.

Currently it is hard coded in #define SYSLOG_HOST "5.5.5.5" at compile time. New to Arduino coding I am having a hard time dynamically setting the syslog output in my app because syslogstream.h void setDestination(const char dest) { _dest = dest; } is looking for a char and I am trying to pass a string. How can I resolve this?

Can the syslogstream be adapted to accept strings directly or optionally?

Thanks

dheco75 commented 1 year ago

I resolved my issue, thanks.