Comments (21)
from ergometerjs.
I am trying to use the BLE driver on the web. Hardware is my computer which has bluetooth and I am doing that inside chrome.
According to the link I attached in my first comment, it seems like you should serialize the calls to startNotifications
.
from ergometerjs.
from ergometerjs.
Windows 10, chrome 81.
from ergometerjs.
from ergometerjs.
from ergometerjs.
It's localhost. Ergometer-space.org has the same issues it seems.
from ergometerjs.
from ergometerjs.
Well ... according to the link, in case you haven't had a chance to look at it. It can cause issues if the startNotifications
commands are called in parallel instead of in sequence. And I checked your code, you're doing them all at once.
from ergometerjs.
from ergometerjs.
Well, your promiseAllSync
does not actually serialize the execution of the promises. they are just awaited in a different way. The execution is started upon new Promise
which is before the promiseAllSync
call.
from ergometerjs.
from ergometerjs.
from ergometerjs.
This is not correct. The promise code starts executing immediately after the promise is instantiated. The then
code simply means this is called after the promise finished. I have a small fix in my version right now which I'll be trying out today and see if it helps.
Edit: Just try the following code. By your logic, none of the code inside the promises should run, since we don't use any then
.
for(let i = 0; i < 10; i++) {
new Promise(() => console.log(i))
}
from ergometerjs.
Yeah, so this still seems unresolved for me. I tried to run this on my Android phone. and am getting these weird GATT errors.
from ergometerjs.
from ergometerjs.
It is a fairly old phone. You have the latest version from the git repo running on your erg space, no?
from ergometerjs.
from ergometerjs.
I could for the first time repeat the connection problems. Hopefully I can now debug and fix this.
from ergometerjs.
I have published a fix for multi plex mode for android. You can turn on this mode and then it should compensate for limited blue tooth hard ware.
from ergometerjs.
Thanks
from ergometerjs.
Related Issues (13)
- Can't get Electron demo to work HOT 10
- recovery time and drive time HOT 1
- setProgram HOT 5
- React-native on Linux and Android HOT 3
- Android Chrome events HOT 4
- Questions regarding ErgometerJS application HOT 2
- Cannot get to work with HID on Windows machine HOT 22
- Ionic 1 demo HOT 1
- WebBluetooth messages stop after a view seconds HOT 8
- PM3? HOT 1
- Issue with Bluetooth Device filtering HOT 3
- Node JS Demo? HOT 3
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 ergometerjs.