A aegidius20 Member Aug 2, 2025 #1 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?
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 Aug 3, 2025 #2 the event is routed to the object that defined the manager. you can just call Page2.DataAvailable event from B4XMainPage.DataAvailable. Upvote 0
the event is routed to the object that defined the manager. you can just call Page2.DataAvailable event from B4XMainPage.DataAvailable.
A aegidius20 Member Aug 3, 2025 #3 Yes that's what I have done to work around it. Probably the only solution. Upvote 0