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.

enter image description here

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

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -