A Bluetooth service to expose a temperature reading.
Перейти к файлу
microsoft-github-policy-service[bot] 4fe3c63230
Microsoft mandatory file (#6)
2023-06-12 11:43:46 -07:00
.vscode adding service 2017-03-31 10:05:28 -07:00
docs/reference/bluetooth udpated docs 2017-03-31 11:00:43 -07:00
.gitignore adding service 2017-03-31 10:05:28 -07:00
.travis.yml added cloud option 2018-05-23 08:33:46 -07:00
LICENSE Initial commit 2017-03-31 07:48:45 -07:00
Makefile adding service 2017-03-31 10:05:28 -07:00
README.md travis tag 2018-04-17 13:05:23 -07:00
SECURITY.md Microsoft mandatory file (#6) 2023-06-12 11:43:46 -07:00
TemperatureSensorService.cpp adding service 2017-03-31 10:05:28 -07:00
TemperatureSensorService.h adding service 2017-03-31 10:05:28 -07:00
enums.d.ts adding service 2017-03-31 10:05:28 -07:00
extension.cpp aligning naming conventions 2017-03-31 11:22:22 -07:00
pxt.json 0.0.11 2018-04-17 13:04:41 -07:00
shims.d.ts aligning naming conventions 2017-03-31 11:22:22 -07:00
tests.ts adding service 2017-03-31 10:05:28 -07:00
tsconfig.json adding service 2017-03-31 10:05:28 -07:00

README.md

bluetooth temperature sensor service Build Status

A Bluetooth service to expose a temperature reading.

Usage

This package allows to create a Bluetooth temperature sensor and provide the data from any custom sensor attached to the @boardname@. In fact, it can be used to stream any data!

bluetooth.startTemperatureSensorService(() => {
    bluetooth.setTemperatureSensorValue(input.lightLevel());
})

Then use the temperature charting from Bitty data logger to visualize it.

Supported targets

  • for PXT/microbit (The metadata above is needed for package search.)
bluetooth
bluetooth-temperature-sensor

License

MIT

Code of Conduct

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.