- subfunction: number
Diagnostics sub-function code (0 to 65535). Please refer to the protocol documentation for a list of predefined sub-function codes.
- data: number
Data to be returned (looped back) in the device response. Returned data should match the original for the request to be considered successful.
var message = builder.requestDiagnostics(1, 65535);