Skip to content

Commit

Permalink
simple syslog receiver
Browse files Browse the repository at this point in the history
  • Loading branch information
folkertvanheusden committed Nov 9, 2024
1 parent cc9589d commit 4bbe435
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions microcontrollers/syslog-listener.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#! /usr/bin/python3

import time
import socket

s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
s.bind(('', 514))
while True:
data, who = s.recvfrom(4096)
print(time.ctime(), who, data)

0 comments on commit 4bbe435

Please sign in to comment.