Comments (6)
Looking at the Bluetooth web specification there seems no way to change or even request the MTU size. So if I read it correctly there is no way currently to support this.
https://webbluetoothcg.github.io/web-bluetooth/#ref-for-exchange-mtu
from flutter_web_bluetooth.
Thanks for your reply!
Er..I have a problem, when using the web bluetooth, some data can write success, but some can not with the same character, seem like my device ignore that. The api told me write success, but device doesn't work
And I tried write the same data by my phone to the device, and It works
Did the web bluetooth have some unknown limit when write data to character?
The data success:
[2, 2, 242, 1, 0, 40, 55, 69, 68, 70, 53, 54, 67, 68, 65, 57, 57, 68, 69, 52, 49, 48, 55, 65, 52, 51, 51, 57, 67, 48, 53, 67, 69, 68, 65, 55, 55, 49, 52, 68, 70, 54, 55, 53, 51, 66, 48, 3]
The data failed:
[83, 75, 67, 70, 71, 123, 34, 109, 97, 99, 34, 58, 34, 54, 54, 55, 48, 67, 69, 66, 65, 34, 44, 34, 103, 114, 111, 117, 112, 34, 58, 56, 48, 48, 49, 44, 34, 114, 101, 115, 116, 97, 114, 116, 34, 58, 49, 125]
from flutter_web_bluetooth.
my code:
flutter_web_ble
from flutter_web_bluetooth.
Hi, do u have any suggestion?
from flutter_web_bluetooth.
It's difficult to see what your error is precisely, I did see this in the specification:
If bytes is more than 512 bytes long (the maximum length of an attribute value, per Long Attribute Values) return a promise rejected with an InvalidModificationError and abort these steps.
But your data doesn't seem to be longer than that limit.
What I can suggest you try is using writeValueWithoutResponse
and seeing if that fixes it.
I'm also not sure if this line properly waits for the device to be connected, so you may just be sending data too early.
from flutter_web_bluetooth.
I tried, don't work, the result is still one success, the other fail with nothing happened
Thanks a lot.
from flutter_web_bluetooth.
Related Issues (20)
- Struggling with BluetoothCharacteristic.value HOT 2
- Error with brand new Flutter project HOT 2
- Unable to read data using .value property from a BluetoothCharacteristic object. HOT 6
- Misleading description on pub.dev HOT 4
- Support for getting list of characteristics from a service
- Can't find any service HOT 6
- Can We Get Manufacturer Data or FilterOption by Manufacturer data HOT 5
- How to determine the current connected device ? HOT 1
- Signal strength HOT 3
- Getting meta dependency issue HOT 1
- Thermal Printers compatibility?
- Interaction between Flutter web app and Flutter mobile app HOT 2
- Browser supports HOT 6
- Unable to getting Services of Bluetooth Device HOT 3
- Add exclusion filters
- Manufacturer Data Map is empty in advertisements HOT 6
- Support Notifications
- Cannot listen for changes on characteristic.startNotifications() HOT 5
- Couldn't find all of the services! HOT 4
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 flutter_web_bluetooth.