function sendMethodResponse(node, methodResponse) {
        // Push the reponse to the array
        node.log(node.deviceid + ' -> Creating response for command: ' + methodResponse.methodName);
        methodResponses.push(
            {requestId: methodResponse.requestId, response: methodResponse}
        );
    }
// Send device direct method response.
Send device direct method response.
Send device direct method response .
function sendMethodResponse(node, methodResponse) {
        node.log(node.deviceid + ' -> Creating response for command: ' + methodResponse.methodName);
        methodResponses.push(
            {requestId: methodResponse.requestId, response: methodResponse}
        );
    }
function sendMethodResponse ( node , methodResponse ) { node . log ( node . deviceid + ' -> Creating response for command: ' + methodResponse . methodName ) ; methodResponses . push ( { requestId : methodResponse . requestId , response : methodResponse } ) ; }
Send device direct method response.
Send device direct method response .
// Push the reponse to the array