Last post Nov 07, 2019 11:33 AM by mgebhard
Nov 07, 2019 08:05 AM|mr. nobody|LINK
I want to break an infinite loop in hub invoked method, which reads com port data.
I'm trying break a loop by invoking another hub method, which set to false loop condition. But, it seems method is not invoked because logger didn't log anything.
Is technically it possible? If possible is it a good idea infinitely looping inside hub method?
Nov 07, 2019 11:33 AM|mgebhard|LINK
The SerialPort library has a DataReceivedEvent where you can write code to handle asynchronous data received on the port.
Share your code if you want a code review from a forum member.