redvypr.devices.network.network_device¶
network device
Configuration options for a network device:
devicemodulename: network_device deviceconfig:
name: tcpserial1 # The name, must be unique config:
address: <ip> # Address IP, localhost. <broadcast> for UDP broadcast in local network. <ip> for local ip port: 10001 # Port serialize: str # yaml,str default yaml protocol: tcp # tcp, udp default tcp direction: publish # publish, receive default receive data: nmea # dictionary keys, default all tcp_reconnect: True # Try to reconnect to host if connection was closed tcp_numreconnect: 10 # The number of reconnection attempts
Functions
|
|
|
|
|
Function that processes the data_dict to a serialized datastream sendable over network connections |
|
Packs the received raw data into a packet that can be sent via the dataqueue |
|
TCP receiving |
|
TCP publishing, this thread waits for TCP connections connections. |
|
UDP receiving |
|
UDP publishing |
|
Classes
|
|
|