B4i Library BLE (Bluetooth Low Energy) library

Intek

Member
Licensed User
Longtime User
About WriteData I write the following code and I have no error but then it did not write the value, someone has tried it?
Am I doing something wrong?

state = state + 1
sff(1) = Bit.AND(state, 255)
sff(0) = ((state - Unsigned(sff(1))) / 256
manager.WriteData("FF00", "FFF1", sff)
 

Intek

Member
Licensed User
Longtime User
Are there any messages in the logs? It should log something.

In logs i can see when i change Notify state "Notification state changed for characteristic: FFF1" but nothing about WriteData
 

Intek

Member
Licensed User
Longtime User
Now appears in the log the successful writing and now I can write in characteristic.
I checked the code again and maybe something was wrong, anyway now works.
Thank you very much again.
 

henrywood

Active Member
Licensed User
Longtime User
Can the BLEManager be used with iBeacons so that events are fired when a beacon region is entered or exited (like the easiBeacon library for B4A ?
 

KY Leng

Member
Licensed User
Longtime User
Not yet test, but hopefully, it will work this time to solve my problem.
 

henrywood

Active Member
Licensed User
Longtime User
This may be dumb question, but here goes:

If the Iphone is sleeping or my app is not in the foreground/running, will periodically scanning for beacons in my app (to raise the DeviceFound event) still work ?
I need to react in my app when new iBeacons are in range and from what I've gathered thus far I need to react to the DeviceFound event but will that event even be raised if the app is not in the foreground / running ? According to Apple, iOS 7.1+ supports notifying apps of iBeacons nearby even when the app is closed / not in the foreground, but will it work like this in the BLEManager also ?
 
D

Deleted member 103

Guest
Hi,

Is there an event if no BLE device is found or a timeout?
B4X:
Sub btnScan_Click
    manager.Scan(Null)
End Sub
 

Ph1lJ

Member
Licensed User
Longtime User
Hi
I just tried to install v1.20 and it continues to show 1.11, I have unchecked and re-checked, to force a refresh

Any one got any ideas - I'm using B41 1.8
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…