Jmu5667 Well-Known Member Licensed User Longtime User Mar 28, 2025 #1 Hello Referring to https://www.b4x.com/android/forum/t...s-characteristics-using-the-same-uuid.160041/ can this also be implemented in iOS please. Regards John.
Hello Referring to https://www.b4x.com/android/forum/t...s-characteristics-using-the-same-uuid.160041/ can this also be implemented in iOS please. Regards John.
Erel B4X founder Staff member Licensed User Longtime User Mar 30, 2025 #2 You can get the native service object with BLE.GetServiceObject. It will return a CBService: https://developer.apple.com/documentation/corebluetooth/cbservice?language=objc You can then do something like: B4X: Dim service As NativeObject = ble.GetServiceObject(...) Dim chars As List = service.GetField("characteristics") For Each c As NativeObject In chars Log(c) Next Upvote 0
You can get the native service object with BLE.GetServiceObject. It will return a CBService: https://developer.apple.com/documentation/corebluetooth/cbservice?language=objc You can then do something like: B4X: Dim service As NativeObject = ble.GetServiceObject(...) Dim chars As List = service.GetField("characteristics") For Each c As NativeObject In chars Log(c) Next