Connection
This module provides classes for handling connections to serial and socket devices.
FUNCTION | DESCRIPTION |
---|---|
get_addresses |
Get the appropriate addresses for current machine |
get_host |
Get the host IP address for current machine |
get_node |
Get the unique identifier for current machine |
get_node_linux |
Get the unique identifier for Linux machine |
get_node_macos |
Get the unique identifier for macOS machine |
get_node_windows |
Get the unique identifier for Windows machine |
get_ports |
Get available serial ports connected to current machine |
match_current_ip_address |
Match the current IP address of the machine |
Documentation last updated: 2025-06-11
get_addresses
Get the appropriate addresses for current machine
PARAMETER | DESCRIPTION |
---|---|
registry
|
dictionary with serial port addresses and camera ids
TYPE:
|
mac_address
|
whether to use MAC address for node id, defaults to True
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
dict | None
|
dict|None: dictionary of serial port addresses and camera ids for current machine, if available |
get_host
Get the host IP address for current machine
RETURNS | DESCRIPTION |
---|---|
str
|
machine host IP address
TYPE:
|
get_node
Get the unique identifier for current machine
PARAMETER | DESCRIPTION |
---|---|
mac_address
|
whether to use MAC address for node id, defaults to True
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
str
|
machine unique identifier
TYPE:
|
get_node_linux
Get the unique identifier for Linux machine
RETURNS | DESCRIPTION |
---|---|
str
|
machine unique identifier
TYPE:
|
get_node_macos
Get the unique identifier for macOS machine
RETURNS | DESCRIPTION |
---|---|
str
|
machine unique identifier
TYPE:
|
get_node_windows
Get the unique identifier for Windows machine
RETURNS | DESCRIPTION |
---|---|
str
|
machine unique identifier
TYPE:
|
get_ports
Get available serial ports connected to current machine
RETURNS | DESCRIPTION |
---|---|
list[str]
|
list[str]: list of connected serial ports |
match_current_ip_address
Match the current IP address of the machine
PARAMETER | DESCRIPTION |
---|---|
ip_address
|
IP address to match against the current machine's IP addresses
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
bool
|
whether the IP address matches the current machine
TYPE:
|