We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cc9589d commit 4bbe435Copy full SHA for 4bbe435
microcontrollers/syslog-listener.py
@@ -0,0 +1,10 @@
1
+#! /usr/bin/python3
2
+
3
+import time
4
+import socket
5
6
+s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
7
+s.bind(('', 514))
8
+while True:
9
+ data, who = s.recvfrom(4096)
10
+ print(time.ctime(), who, data)
0 commit comments