Open nneubauer opened 6 years ago
I seem to be hitting this issue too.
From the looks of it, sendCommand (in denon_client.js) never resolves in the return case. I just commented out the if statement there (thus it always resolves) and be done with it :) Here's how mine looks:
/**
* Sends a command to the Denon AVR
*
* @method sendCommand
* @param {string} command [The command]
* @param {string} parameter [The parameter]
* @return {Promise} [A response]
*/
sendCommand(command, parameter, hook) {
return new Promise((resolve) => {
if (typeof hook === 'string') {
this.once(hook, (result) => {
resolve(result);
});
}
return this
.write(`${command}${parameter}`)
.then(() => {
// if (typeof hook === 'undefined') {
resolve();
// }
});
})
}
Hi,
maybe I am doing it wrong, but I am trying to:
I can see the first log message, so connect() seems to resolve, but getInput() never does seem to resolve so that the "Current input retrieved" log never appears. Curiously, also the Error log never appears. Nothing happens. (Probably the chain hangs...).
I have a X1400. Any ideas? I have the same with
setPower
. The receiver actually powers on but the.then()
part never resolves even after the AVR is switched on.