Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syslog hostname need todynamically change in the app. #5

Open
dheco75 opened this issue Jan 8, 2023 · 1 comment
Open

Syslog hostname need todynamically change in the app. #5

dheco75 opened this issue Jan 8, 2023 · 1 comment

Comments

@dheco75
Copy link

dheco75 commented Jan 8, 2023

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
Copy link
Author

dheco75 commented Jan 23, 2023

I resolved my issue, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant