Comments (8)
From #3
If found that in BlePeripheralPlugin.kt
valueArg = characteristic.value
was changed to
valueArg = value
inside :
handler.post {
bleCallback?.onWriteRequest(
characteristicIdArg = characteristic.uuid.toString(),
offsetArg = offset.toLong(),
valueArg = value,
It worked for me.
Will you plan to merge this PR ?
from ble_peripheral.
@WBP20 on which platform ?
from ble_peripheral.
Peripheral : Android.
Central : MacOS (for now).
from ble_peripheral.
@rohitsangwan01 additionally, how can we identify the "central" device this read request came from? E.g. when multiple remote devices connected to a "peripheral" instance in the Flutter/dart app?
from ble_peripheral.
@rohitsangwan01 additionally, how can we identify the "central" device this read request came from? E.g. when multiple remote devices connected to a "peripheral" instance in the Flutter/dart app?
No way to get central Id for now, will add I'd in callbacks
from ble_peripheral.
@WBP20 thanks for letting me know, will check this, or you can send a pr as well, if that is working for you
from ble_peripheral.
@rohitsangwan01 the fix is inside the PR #3 which you could not push because of potential conflits, but you can have a look on what was changed inside BlePeripheralPlugin.kt maybe ?
from ble_peripheral.
@WBP20 @ekuleshov fixed in V2.0.0
from ble_peripheral.
Related Issues (11)
- Throw exception "Bluetooth Permission not granted" even permission granted HOT 8
- java.lang.RuntimeException: Methods marked with @UiThread must be executed on the main thread. Current thread: Binder:10909_3 HOT 3
- Service is added twice HOT 2
- onWriteRequest 's value is null HOT 1
- please do add on Mtu changed callback in the call backs HOT 1
- GATT_WRITE_NOT_PERMITTED HOT 8
- Android fatal runtime error when not initialized but bluetooth state changes HOT 3
- Android if localName not defined HOT 1
- BLE GATT Server ask for pairing HOT 5
- Disconnect Devices Server Side
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ble_peripheral.