Closed sticilface closed 7 years ago
I used this post to fix the vsnprintf_P on the other platform but can't test if it actually works https://github.com/bportaluri/WiFiEsp/pull/27
This adds the implementation for
Syslog &Syslog::server(IPAddress ip, uint16_t port)
which is missing. adds a check to use_ip
if_server
isnull
I will fix it in version 2.1.0
adds a new method to use
PSTR()
withinSyslog & vlogf_P(uint16_t pri, PGM_P formatP, ...)
this saves RAM and is quite cool.
Yes, I've think about the same. I will definitely add it to version 2.1.0. But your implementation should be separated into two methods: logf_P(uint16_t pri, PGM_P formatP, ...)
and vlogf_P(uint16_t pri, PGM_P formatP, va_list args)
. The v there means va_list
.
I made my own implementation of logf_P
anyway thanks for PR.
no problem :)
This adds the implementation for
Syslog &Syslog::server(IPAddress ip, uint16_t port)
which is missing. adds a check to use _ip if _server is null adds a new method to use PSTR() withinSyslog & vlogf_P(uint16_t pri, PGM_P formatP, ...)
this saves RAM and is quite cool.