Commit Graph

19 Commits

Author SHA1 Message Date
Thorsten von Eicken
d7823b0947 switch to us timer 2017-06-18 21:21:51 -07:00
beegee-tokyo
a9df22e51f Workaround for missing realtime_stamp 2016-09-27 20:34:34 +08:00
beegee-tokyo
0654c1d038 Synced master branch with upstream from jeelabs
Signed-off-by: beegee-tokyo <bernd@giesecke.tk>
2016-09-27 16:56:42 +08:00
Thorsten von Eicken
ef6a611045 Reduce memory consumption; fix syslog alloc when disabled 2016-06-19 23:05:37 -07:00
Thorsten von Eicken
d2bd118f0b fix c99 types mess; clean up after merges 2016-04-03 10:41:16 -07:00
Thorsten von Eicken
56e76c6bc4 Revert "TvEmaster"
This reverts commit f577c140df.
2016-04-03 10:15:31 -07:00
susisstrolch
e3e19ffa38 TvEmaster
Syslog and debug printing fixes
2016-04-03 10:11:34 -07:00
Alastair D'Silva
80d9945266 Fix warnings reported in #113 (format warnings, differing types) 2016-04-01 19:48:37 +11:00
Thorsten von Eicken
1d0f3136c5 fixes #111: handle malloc failure in syslog 2016-02-27 09:44:41 -08:00
susisstrolch
077bcaf02d syslog: fixed regression
- #undef SYSLOG_DBG will discard first four syslog messages
- race condition in os_timer_setfn/os_timer_arm lead to
  1226> Fatal exception 9(LoadStoreAlignmentCause):
  1227> epc1=0x4010076e, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00000003, depc=0x00000000
- potential loop in syslog_init - fixed by additional state SYSLOG_INITDONE
2015-12-16 19:21:54 +01:00
susisstrolch
66258fd48d syslog.md: add example for queuing after reboot 2015-12-15 13:04:14 +01:00
susisstrolch
94d54c140c syslog: fixup
- implement syslog filter
- honour timezone setting
- rework syslog format
- finish (really?) syslog documentation
2015-12-15 12:59:42 +01:00
susisstrolch
8791bda62d syslog: fix UDP timing problems
- start README file describing the interface
- add 2ms delay before sending the next package
2015-12-14 09:42:51 +01:00
Benjamin Runnels
ac04cc58a8 removed syslog_enable functionality and config
reordered config settings
2015-12-09 07:24:12 -06:00
Benjamin Runnels
bfee1cf694 fixes for services 2015-12-07 07:03:10 -06:00
Benjamin Runnels
13bc8019c6 Merge branch 'master' of https://github.com/jeelabs/esp-link
Added services page and moved some things around
2015-12-05 18:06:31 -06:00
susisstrolch
538e79f1dc fixes/changes after pull request
- changed defaults for Flashconfig
  - SNTP-Server: empty
  - Syslog-Server: empty
  - hostname: reverted to esp-link

- heavy cleanup in syslog.c
  - removed debug messages
  - add local syslog_compose function
2015-11-24 14:06:25 +01:00
susisstrolch
f3dd7368d0 fix rebase / merge errors
- missing LOG_xxx macros in syslog.h
- fixed tag (esp-link) in LOG_xxx macro
2015-11-23 23:45:59 +01:00
susisstrolch
e84900dbc7 syslog - a simple syslog client
syslog UDP messages are send via
syslog(uint8_t facility, uint8_t severity, const char tag[], const char message[], ...);

the syslog function queues any msg on system heap. If heap reaches a minimum size (8kB),
syslog stops queuing.
As soon as Wifi connectivity is available, syslog will send out all queued messages.
Queuing will be reenabled after all pending messages are sent.
2015-11-23 22:37:31 +01:00