MIP_SDK
latest-2-g34f3e39
MicroStrain Communications Library for embedded systems
|
Functions | |
std::unique_ptr< microstrain::Connection > | createConnectionFromInterfaceName (std::string interface_name, uint32_t parameter) |
Creates a connection object given the interface name and a parameter. More... | |
bool | isSerialInterfaceName (const std::string_view interface_name) |
Determines if the name corresponds to a serial port device. More... | |
bool | isNetworkInterfaceName (std::string_view interface_name) |
Determines if the name corresponds to a URL or IP address. More... | |
std::unique_ptr< microstrain::Connection > mip::platform::createConnectionFromInterfaceName | ( | std::string | interface_name, |
uint32_t | parameter | ||
) |
Creates a connection object given the interface name and a parameter.
connection->connect()
to open it.interfaceName | This is the interface name - COM* (windows) or /dev/tty* (Linux) for a serial port or anything else for a TCP socket. |
parameter | For serial ports, this is the baud rate. For TCP sockets, this is the port number. |
bool mip::platform::isNetworkInterfaceName | ( | std::string_view | interface_name | ) |
Determines if the name corresponds to a URL or IP address.
interface_name |
bool mip::platform::isSerialInterfaceName | ( | const std::string_view | interface_name | ) |
Determines if the name corresponds to a serial port device.
interface_name |