Trying Erel's example (https://www.b4x.com/android/forum/threads/b4x-ble-2-bluetooth-low-energy.59937/#content), I am disconnected 1-2 seconds after connecting.
The logs:
Call B4XPages.GetManager.LogEvents = True to enable logging B4XPages events.
** Activity (main) Resume **
Found: , BC:7E:8B:C3:53:0B, RSSI = -102, (MyMap) {-1=[[email protected], 0=[[email protected]}
connecting
Found: , 04:81:71:2A:69:A1, RSSI = -84, (MyMap) {-1=[[email protected], 0=[[email protected]}
connecting
Disconnected
Disconnected
With
The logs:
Call B4XPages.GetManager.LogEvents = True to enable logging B4XPages events.
** Activity (main) Resume **
Found: , BC:7E:8B:C3:53:0B, RSSI = -102, (MyMap) {-1=[[email protected], 0=[[email protected]}
connecting
Found: , 04:81:71:2A:69:A1, RSSI = -84, (MyMap) {-1=[[email protected], 0=[[email protected]}
connecting
Disconnected
Disconnected
With
B4X:
*** mainpage: B4XPage_Appear ** Activity (main) Resume ** *** mainpage: B4XPage_PermissionResult [mainpage] *** mainpage: B4XPage_PermissionResult [mainpage] *** mainpage: B4XPage_PermissionResult [mainpage] startscan Found: , 08 connecting Disconnected ** Activity (main) Pause event (activity is not paused). ** *** mainpage: B4XPage_Disappear [mainpage] ** Service (starter) Destroy (ignored)** Devices: Samsung SM A725F Xiaomi 6 band, but the same results with another (Denver) Phone settings checked. |