Description
Parameter introduction:
portNo—————Serial port number, the default value is 1, ie COM1, please note that it should not be greater than 9
Baud rate———–Baud rate, the default is 9600
Parity check———Whether to perform parity check,’Y’ means parity check is required,’N’ means parity check is not required
databits————-Data bits, the default value is 8 data bits
stopbits ————-Stop bit format, the default value is 1
dwCommEvents—–The default value is EV_RXCHAR, that is, as long as any character is sent and received, an event will be generated
Change log : (2021/05)
Fixed a crash bug when calling the interface too frequently in some small probability situations.
Change log : (2021/02)
4.26 version:
Added ClosePort function
Added IsPortOpen function
Added StopListenThread function
Added enumeration to control RTS and DTR variables.
Change log : (2020/12)
Support 4.26 version
Change log : (2020/11)
Add hexadecimal data interface–SendDataByHex
Technical Details
Code Modules:
Check out ywt20’s other products here : https://www.unrealengine.com/marketplace/en-US/profile/YWT20
Number of Blueprints: 1
Number of C++ Classes: 1
Network Replicated: (No)
Supported Development Platforms: (“Windows”)
Supported Target Build Platforms: (“Win64”, “Win32”)
Documentation: Link
Example Project: Link
Note: When initializing the serial port, there must be a corresponding actual connected serial port number. If there is no actual serial port number in the test environment, you can consider using tools like “Virtual Serial Port Driver” to create a virtual serial port.
Supported Engine Versions
4.25 – 4.27, 5.0 – 5.3