|
Lucon SDK 1.0.7
|
Functions | |
| LuconHandle | LUCON_NewUdpConnection (const char *const raddr, uint16_t lport, const char *const laddr) |
| New UDP connection. | |
| LuconHandle | LUCON_NewRs232Connection (const char *const name, uint32_t baudRate) |
| New RS232 serial-port connection. | |
| LuconHandle | LUCON_NewFakeConnection () |
| Creates a new fake connection, which may be used for simulation / testing without real hardware. | |
|
extern |
Creates a new fake connection, which may be used for simulation / testing without real hardware.
|
extern |
New RS232 serial-port connection.
| name | The name of the COM port, e.g. "COM3" |
| baudRate | The baud rate for serial communication. If 0 is specified, the factory default will be used. |
|
extern |
New UDP connection.
The inputs are immediately parsed and resolved to IP addresses
| raddr | The remote/device IP address as a zero-terminated string, e.g. "10.0.30.2" |
| lport | The local UDP port to be used for listening for device data. If 0 is specified, an arbitrary port is chosen automatically |
| laddr | The address of the local network interface to be used, e.g. "10.0.30.1". NULL or an empty cstring result in automatic choice. |