C#串口通信问题
Unity2019, C#7.0
使用SerialPort模块,以多线程或异步方式去监控BytesToRead,去进行读取是没问题的,但是我想改成用DataReceived事件做成触发式,然而一直没成功,试了各种设置都不行,最后发现,当对ReceivedBytesThreshold属性进行读写时,运行时提示
NotImplementedException: The method or operation is not implemented.
如果是读取,指向就是System.IO.Ports.SerialPort.get_ReceivedBytesThreshold,如果是设置则指向System.IO.Ports.SerialPort.set_ReceivedBytesThreshold,怀疑因为这样导致了ReceivedBytesThreshold属性实际运行中不存在,所以没办法触发事件,请问有谁知道怎么会出现这个情况?