INTRODUCTION Overview Download and Install Documentation Publications REPOSITORY Libraries DEVELOPER Dev Guide Dashboard PEOPLE Contributors Users Project Download Mailing lists
|
FlexiPort data communications library. More...
Detailed DescriptionFlexiPort data communications library. This namespace is part of the FlexiPort library.
Function Documentation◆ CreatePort() [1/2]
Factory function to create a Port object of the necessary port type. This factory function is the only way to create a Port object matching the type of port you need. Options are passed in as key/value pairs in the options argument. A minimum of one option is necessary, the "type" option. This specifies the type of port to be created. An object of the correct class (SerialPort, TCPPort or LogReaderPort, for example) will be created based on the value of this option. All other options, including both universal options and type-specific options, will be passed on to the created object. See Options for a list of options accepted by all port types. See each port type's description for a list of options accepted by that port type.
◆ CreatePort() [2/2]
Overloaded factory function. Accepts options as a string. This overload accepts the options as a string. For example: "type=serial device=/dev/ttyS0 baud=4800 readwrite" Options may be separated by any of: spaces, tabs, new lines or commas. Do not put whitespace around an equals sign.
|