microbit-web-bluetooth | Web Bluetooth library for micro : bit | Runtime Evironment library
kandi X-RAY | microbit-web-bluetooth Summary
kandi X-RAY | microbit-web-bluetooth Summary
Web Bluetooth library for micro:bit
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of microbit-web-bluetooth
microbit-web-bluetooth Key Features
microbit-web-bluetooth Examples and Code Snippets
Community Discussions
Trending Discussions on microbit-web-bluetooth
QUESTION
I am playing around with bbc:microbit using bluetooth web api to access the microbit service data (button event, led, magnetometer, ...).
It looks like the light sensor information are not accessible from the javascript API. From the microbit documentation, light sensing are accessible from the led service, but it looks like the lib is missing them.
...ANSWER
Answered 2020-Sep-12 at 21:07The micro:bit Bluetooth profile is defined at:
https://lancaster-university.github.io/microbit-docs/resources/bluetooth/bluetooth_profile.html
It does not expose the light sensor information by default over Bluetooth. My initial thought for a quick workaround is that you could send the value over the Bluetooth UART service. I used the editor at: https://makecode.microbit.org/#editor to create a hex file for the micro:bit that seemed to work:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install microbit-web-bluetooth
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page