can events for Asyncstreams be placed in code module

bustedkrutch

New Member
Licensed User
Longtime User
Hi folks,

I'm toying with the bluetooth tutorial code and wanted to access the Asyncstreams events (i.e. AStream_NewData ) from different activities after having connected with bluetooth.

One side of the connection had one activity and the other side has a different activity, but they both send and receive data via Asyncstreams over bluetooth.

I put the Asyncstreams code in a code module, instead of keeping it in the tutorial activity.

I'm afraid to add the code, it's sooo hacky. I expected to have to declare the code module in the main but I hadn't found any threads that pointed to that.

Thank you.

Mike
 
Top