UWP background task to read Sensor -
here current project read sensor value uwp application.
my sendors connected virtual serial port ( com1,2,3... ). , display value on ui.
here requirement application.
- repeat read sensor value 24 hours, 365 days.
- display value ui
- with uwp, extendedexecutionsession , application should running without stopping/suspending.
and recently, found article. https://docs.microsoft.com/en-us/windows/uwp/launch-resume/access-sensors-and-devices-from-a-background-task ( read document, described maximum background job time 10 minute ). if so, not match requirement ?
question
should use (deviceusetrigger) ? please advice me. first uwp application. then, don't have confident best way start background job read sensor value repeatedly. background job change ui value.
appservice
or should use appservice on uwp ?
my own update
deviceusetrigger good. maximum time 10 minute in desktop family. then, not idea. then, thought, extendedexecutionsession, can run uwp application desktop application. maybe best. can use normal task/await + loop project ? think ?
Comments
Post a Comment