Forum Cross Platform with Xamarin

Polling from Bluetooth SPP


This is an app architecture type of question.
I am currently focusing on the Android code but I will be doing an iOS version later. Answers should focus on Android.

I have an app with multiple pages and I have already established a bluetooth connection with a serial to bluetooth adapter.
On some of these pages I need to poll information from the bluetooth adapter every second and respond with a series of bytes.
On the other pages I don't need to poll and only send event driven data (such as a button press).

What would be the best way to achieve this? Should I setup a thread to poll? Or a service? or something else?



Sign In or Register to comment.