Approved content

The content below is provided by partner.

bluetooth-temperature-sensor 0.0.10 (microsoft/pxt-bluetooth-temperature-sensor) Fork me

A Bluetooth service to expose a temperature reading.

bluetooth temperature sensor service

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 micro:bit. 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

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.

bluetooth-temperature-sensor=github:microsoft/pxt-bluetooth-temperature-sensor#v0.0.10