Andrey
Andrey
Can you offer some cross-platform library? If so, then I will try to integrate it into pysphero.
From [pybluez doc](https://pybluez.readthedocs.io/en/latest/install.html?highlight=BLE#installing-pybluez): > For experimental Bluetooth Low Energy support (only for Linux platform... There is a good [library](https://github.com/igbopie/spherov2.js) for Sphero on TypeScript.
Hi! > not really sure what to put as parameters. Simply put additional parameters in set_notify, e.g.: ```python from pysphero.device_api.sensor import CoreTime, Accelerometer, Gyroscope ... sphero.sensor.set_notify(notify_callback, Gyroscope, Accelerometer, CoreTime) ......
You can use [interval](https://github.com/EnotYoyo/pysphero/blob/fdac7f19c27e367919fda050502826834865edc0/pysphero/device_api/sensor.py#L122) argument: ```python from pysphero.device_api.sensor import CoreTime, Accelerometer, Gyroscope ... sphero.sensor.set_notify(notify_callback, Gyroscope, Accelerometer, CoreTime, interval=100) ... ```
> Should I try to intercept BLE messages? Yes, that's a good way. I think you should try to use the [magnetometer_north_yaw_notify](https://github.com/EnotYoyo/pysphero/blob/8142abefa8d9c9dad1214809c4a3b2fb20d0d26d/pysphero/device_api/sensor.py#L101) command
I want to rewrite this library from bluepy to another bluetooth library. Maybe gatt-python or bleak. I hope, that all such errors go away after that.
You can try [this](https://github.com/typedivision/pysphero/commits/gatt-python) branch.
In the near future I will try to rewrite to bleak :(