Comments (4)
Additional errors include:
2021-12-31 14:45:12 INFO Likely found a onewheel, using ***
2021-12-31 14:45:15 ERROR Connection error: [WinError -2147483629] The object has been closed
2021-12-31 14:45:15 WARNING Cannot read data, not connected
from onewheel-bluetooth.
Full debug output after detecting the board with scan:
2021-12-31 14:50:41 DEBUG Connecting to BLE device @ ***
2021-12-31 14:50:42 DEBUG _ConnectionStatusChanged_Handler: 1
2021-12-31 14:50:42 DEBUG Get Services...
2021-12-31 14:50:43 DEBUG _ConnectionStatusChanged_Handler: 0
2021-12-31 14:50:43 ERROR Connection error: Could not get GATT services: Unreachable
2021-12-31 14:50:43 DEBUG _ConnectionStatusChanged_Handler: 1
2021-12-31 14:50:43 INFO Connected to board: None
2021-12-31 14:50:43 DEBUG _ConnectionStatusChanged_Handler: 0
2021-12-31 14:50:43 WARNING Not connected, exiting loop
2021-12-31 14:50:43 DEBUG _ConnectionStatusChanged_Handler: 1
2021-12-31 14:50:43 DEBUG Disconnecting from ***
2021-12-31 14:50:43 DEBUG _ConnectionStatusChanged_Handler: 0
2021-12-31 14:50:43 DEBUG Disconnecting from BLE device...
2021-12-31 14:50:43 DEBUG Disconnected
from onewheel-bluetooth.
I think the problem is coming from this bit in bleak
# Windows does not support explicitly connecting to a device.
# Instead it has the concept of a GATT session that is owned
# by the calling program.
self._session.maintain_connection = True
# This keeps the device connected until we set maintain_connection = False.
# wait for the session to become active
await asyncio.wait_for(event.wait(), timeout=timeout)
except BaseException:
handle_disconnect()
raise
finally:
self._session_active_events.remove(event)
# Obtain services, which also leads to connection being established.
await self.get_services()
from onewheel-bluetooth.
Since this looks like a bleak
issue and I am more interested in linux support for my usage currently, this is not a priority unless someone else has a fix or input short of me making changes to bleak to work around it.
from onewheel-bluetooth.
Related Issues (8)
- Zero values when connecting HOT 3
- BLE Connection?
- No module named pygatt HOT 2
- Pint support HOT 1
- Pygatt is dead, long live Bleak
- Full library HOT 1
- Encryption HOT 1
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 onewheel-bluetooth.