arcao / Syslog

An Arduino library for logging to Syslog server in IETF format (RFC 5424) and BSD format (RFC 3164)
MIT License
119 stars 48 forks source link

Examples fail to deliver first messages #22

Open totalretribution opened 4 years ago

totalretribution commented 4 years ago

Using the example code (SimpleLoggingESP8266) running on an ESP32 and either Visual Syslog Server and tftpd64 on windows the first message I actually receive is "This is info message no. 1". This skips over the first 2 messages however after the first loop all messages are sent.

Anyone have any idea why this happens, I have tried adding a large delay and several messages in setup yet no change.

192.168.1.22 Jun 02 18:31:33 1 kern info - my-device my-app - - - This is info message no. 1 192.168.1.22 Jun 02 18:31:33 1 daemon info - my-device my-app - - - This is daemon info message no. 1 192.168.1.22 Jun 02 18:31:33 1 kern info - my-device my-app - - - End loop 192.168.1.22 Jun 02 18:31:42 1 kern info - my-device my-app - - - Begin loop 192.168.1.22 Jun 02 18:31:42 1 kern err - my-device my-app - - - This is error message no. 2 192.168.1.22 Jun 02 18:31:42 1 kern info - my-device my-app - - - This is info message no. 2 192.168.1.22 Jun 02 18:31:42 1 daemon info - my-device my-app - - - This is daemon info message no. 2 192.168.1.22 Jun 02 18:31:42 1 kern info - my-device my-app - - - End loop 192.168.1.22 Jun 02 18:31:52 1 kern info - my-device my-app - - - Begin loop 192.168.1.22 Jun 02 18:31:52 1 kern err - my-device my-app - - - This is error message no. 3 192.168.1.22 Jun 02 18:31:52 1 kern info - my-device my-app - - - This is info message no. 3 192.168.1.22 Jun 02 18:31:52 1 daemon info - my-device my-app - - - This is daemon info message no. 3 192.168.1.22 Jun 02 18:31:52 1 kern info - my-device my-app - - - End loop