Welcome to the Nordic Thingy:52 Node.js library example. Please see http://www.nordicsemi.com/thingy for the latest Nordic Thingy:52 news and software releases.
This library is using noble-device and noble to handle the Bluetooth connection.
See RASPBERRYPI.md for how to set it up on a Raspberry Pi running Raspbian.
See GOOGLE_ASSISTANT.md for how to set it up on a Raspberry Pi running Raspbian and Google Assistant using the Thingy:52 as microphone input.
- Node.js JavaScript runtime.
- noble-device (A Node.js lib to abstract BLE (Bluetooth Low Energy) peripherals, using noble).
- Bluetooth 4.0 USB dongle supported by noble and node-bluetooth-hci-socket.
- Install package:
npm install thingy52
- Find examples
cd node_modules/thingy52/examples
.
A few examples like reading environment sensor data, reading button presses, color sensor calibration, connecting Thingy:52 to Firebase and more can be found under the examples folder.