Nubert Bluetooth Control 🔊
Bluetooth control of Nubert nuPro X speakers using Node.js. For implementing similar controls in other languages, the bluetooth codes are listed in the constants.js
file. Tested with Node v8.
Installation
npm install nubert-bluetooth
Getting Started
// Specify local name of the speaker (same as in the nuPro App)var nubert = localName: 'nubert X-4 8C12'; // Connect via Bluetooth LEnubert; // After connection is etablished...nubert;nubert; // Read changes (for example from the remote control)nubert;
API
var nubert = localName: 'nubert X-4 8C12';
You need to call the connect method first.
nubert; // Specify a callback after connection is established // Disconnect from the speakersnubert;
High-level API
There are a couple of high-level APIs for controlling the Nubert speakers.
nubert;nubert;nubert;nubert;nubert;nubert; // Possible sources are: 'aux', 'opto1', 'opto2', 'xlr', 'usb', 'port', 'coax1', 'coax2'.
Low-level API
If the high-level API is not sufficient for your needs, you can use the low-level API. Then, you can control everything that can be controled also via the nuPro app or the infrared remote.
Constants
A list of all bluetooth flags / constants can be found in the constants.js
file.
Send
nubert; // Some examples using constants:nubert;nubert;
Subscribe
nubert; // Some examples using constants:nubert;
License
Nubert-Bluetooth is under the MIT License.