ich habe eine Webanwendung in nodejs entwickelt, die über BINRPC auf RaspberryMatic greift. Bis jetzt war Alles in Ordnung, aber gestern habe ich neue Version 3.41.11.20181222 eingespielt. Parallel habe ich CUx-Daemon und XML-API aktualisiert. Jetzt kann ich mit dem Client nicht mehr auf die Zentrale zugreifen. Nach jedem Start kommt folgende Meldung:
Error: response timeout
at Timeout.<anonymous> (G:\node\smartHome\node_modules\binrpc\lib\client.js:166:34)
at ontimeout (timers.js:424:11)
at tryOnTimeout (timers.js:288:5)
at listOnTimeout (timers.js:251:5)
at Timer.processTimers (timers.js:211:10) undefined
Hier ein Teil vom Code:
Code: Alles auswählen
private subscribe() {
this.client.methodCall('init', ['xmlrpc_bin://192.168.178.22:2031', 'hmSmart'], function (err, res) {
console.log(err, res);
});
}
constructor(bl) {
this.api = bl.api;
this.hmdevices = new HMDevices();
this.server = rpc.createServer({ host: '192.168.178.22', port: 2031 });
this.client = rpc.createClient({ host: this.ccuIp, port: 2001, responseTimeout:3000, reconnectTimeout:1500 });
this.server.on('system.listMethods', (err, params, callback) => {
callback(['system.listMethods', 'system.multicall', 'event', 'listDevices']);
});
this.server.on('listDevices', (err, params, callback) => { callback(null, []); });
this.server.on('event', function (err, params, callback) {
this.execute('event', params);
callback(null, []);
});
this.server.on('system.multicall', (err, params, callback) => {
var response = [];
params[0].forEach(call => {
this.execute(call.methodName, call.params);
response.push('');
});
callback(null, []);
});
this.subscribe();
}
Muss ich etwas in den Einstellungen der zentrale anpassen?