mvvm - Communicate with a serial device in a WPF application -


i'm dabbling basics of communicating serial device within wpf application implementing mvvm design. right have hard loopback , expect receive characters sent.

i have in past seen hints of win forms control this, , maybe framework class, right bit clueless can use in spirit of mvvm strategy.

i bit confused , seems me might overthinking mvvm. mvvm presentation pattern; serial communication not presentation , doesn't matter presentation layer is.

if , understand problem correctly, have class encapsulates serial communication. if expecting characters sent you, i'd have class expose basic "received" event. view model can use instance of class populate properties view attached to.

hope helps.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -