How does the UNIX_SOCKET scenario work?
Here is an example of a UNIX_SOCKET scenario and attached is a small python program that writes data to the socket. The Ardexa Agent will create the socket which the python script can then connect to.
1
unix_socket:
2
- table: socket_events
3
source: first_device
4
file: /var/run/input.sock
5
expect: integer
6
meta:
7
units: kB
Copied!
socket-test-simple.py.txt
2KB
Text
UNIX Socket example python script
Copy link