node-red-contrib-zwave-js
Version:
The most powerful, high performing and highly polished Z-Wave node for Node-RED based on Z-Wave JS. If you want a fully featured Z-Wave framework in your Node-RED instance, you have found it.
14 lines (10 loc) • 344 B
JavaScript
const { getValueDB } = require('./Fetchers');
const { invokeMethod } = require('./Invoker');
const process = async function (DriverInstance, Method, Args) {
if (Method === 'getValueDB') {
return getValueDB(DriverInstance, Args);
}
/* Dynamic */
return invokeMethod(DriverInstance, Method, Args || []);
};
module.exports = { process };