Configure your Expert:
- Link speed: 115200
- Identifier: Devialet
- Mode -> Command Acknowledge = TRUE
- Mode -> Auto Cchange notification = TRUE
- Mode -> Echo chaining = FALSE
Initialization:
var DevialetExpert = require("node-devialet-expert");
var d = new DevialetExpert();
Listening to events:
d.on('status', function(status) { });
d.on('changed', function(property, value) { });
status
can be one of the following:
'connecting'
'initializing'
'connected'
'disconnected'
property
can be one of the following:
'power'
'volume'
'source'
'mute'
'phase'
'preout'
'riaa'
'subsonic_filter'
'subwoofer'
Starting/Stopping the connection to the Devialet Expert device:
d.start(port, baud);
port
should be like'/dev/cu.usbserial'
or something similar on MacOS or Linux, or'COM3'
on Windowsbaud
should be like115200
, or whatever you configured your Devialet to be (see above)
d.stop();