diff --git a/lib/client.js b/lib/client.js index 89fd40d1..dc596f6f 100644 --- a/lib/client.js +++ b/lib/client.js @@ -1169,6 +1169,14 @@ class Client extends EventEmitter { this._transport.send(buffer.buffer, buffer.offset, receiver); } + /** + * Send an errorResponse for a confirmedService. + * @param {string} receiver ip address of the service initiator + * @param {enum.ConfirmedServices} service the initiated service the generated the error. + * @param {number} invokeId the 'invoke-id' from the confirmed service request to which the error is a response. + * @param {enum.ErrorClasses} errorClass + * @param {enum.ErrorCode} errorCode + */ errorResponse(receiver, service, invokeId, errorClass, errorCode) { const buffer = this._getBuffer(); baNpdu.encode(buffer, baEnum.NpduControlPriority.NORMAL_MESSAGE, receiver);