You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not sure if that's the right place to post this question but I'm trying it anyway (please forgive me if not🙏).
I'm trying to connect to the Light and Color sensor and read it's current Lux value from my Swift iOS app for a university project. Connecting to the sensor and detecting the services and characteristics works well, but I couldn't figure out which values to write/read exactly. I went through all the example, JS and Python code but couldn't find anything useful.
Since the light sensor is the default sensor I'd expect not much configuration. Also when I connect to the sensor with the Graphical Analysis App, the Lux value is read and updated immediately without any actions required by the user. I'd like to implement a similar behavior.
I've enabled notifications for the B41E6675-A329-40E0-AA01-44D2F444BABE characteristic and I'm getting updates (approx. 20 per second <- default sample rate?) for the 8E6F094A-5819-11E6-8B77-86F30CA893D3 characteristic. The data is 8 bytes long, but if I try to convert it to a double or float it doesn't seem to make any sense (example data in hex: ba0d2c8d08000000 ).
Could anyone help me and explain if and how I can configure the sensor to update me with meaningful data or how to interpret the data correctly. Any hints would be highly appreciated. It would also suffice if you could tell me how to achieve this, using a BLE App (like nRF connect or BLE Scanner) that allows to read/write/notify to services and characteristics.
The text was updated successfully, but these errors were encountered:
The Go Direct devices use a custom command protocol. We created the godirect-py and godirect-js modules to encapsulate the details of that protocol. For the approach that you have described, you will need to implement the protocol and various commands in Swift. We cannot provide direct support for that. However, the details you would need can be gleaned directly from the godirect modules, as they are open source projects. It would be a matter of porting from Python/JavaScript to Swift. The files to start with would be device.py or Device.js, respectively.
Not sure if that's the right place to post this question but I'm trying it anyway (please forgive me if not🙏).
I'm trying to connect to the Light and Color sensor and read it's current Lux value from my Swift iOS app for a university project. Connecting to the sensor and detecting the services and characteristics works well, but I couldn't figure out which values to write/read exactly. I went through all the example, JS and Python code but couldn't find anything useful.
Since the light sensor is the default sensor I'd expect not much configuration. Also when I connect to the sensor with the Graphical Analysis App, the Lux value is read and updated immediately without any actions required by the user. I'd like to implement a similar behavior.
I've enabled notifications for the B41E6675-A329-40E0-AA01-44D2F444BABE characteristic and I'm getting updates (approx. 20 per second <- default sample rate?) for the 8E6F094A-5819-11E6-8B77-86F30CA893D3 characteristic. The data is 8 bytes long, but if I try to convert it to a double or float it doesn't seem to make any sense (example data in hex: ba0d2c8d08000000 ).
Could anyone help me and explain if and how I can configure the sensor to update me with meaningful data or how to interpret the data correctly. Any hints would be highly appreciated. It would also suffice if you could tell me how to achieve this, using a BLE App (like nRF connect or BLE Scanner) that allows to read/write/notify to services and characteristics.
The text was updated successfully, but these errors were encountered: