UNPKG

node-ble

Version:

Bluetooth Low Energy (BLE) library written with pure Node.js (no bindings) - baked by Bluez via DBus

14 lines (11 loc) 246 B
function getTestDevice () { const TEST_DEVICE = process.env.TEST_DEVICE if (!TEST_DEVICE) { console.error('TEST_DEVICE environment variable not found') process.exit(1) } return TEST_DEVICE } module.exports = { getTestDevice }