Android Question BLEManager2 catch events from another B4XPage

I have a simple two-page B4XPages program (a cycle computer). BLE devices are connected in B4XMainPage (code is like the BLE2 example) and the characteristics are read in Page 1 by calling manager.ReadData. The manager is declared global in Starter so all pages can get to it.

The DataAvailable event sub is not called if it is in Page 1 - however if I move the sub to B4XMainPage it works. This is not useful because I need the results in Page 1.
What is happening here?
 

Alessandro71

Well-Known Member
Licensed User
Longtime User
the event is routed to the object that defined the manager.
you can just call Page2.DataAvailable event from B4XMainPage.DataAvailable.
 
Upvote 0
Top