Serial Port Monitor Protocol Analyzer Data Logger - Com Port Monitoring and Analyzing Software for Windows
Construct the Report SlaveID response.
The function throws an exception if you specify incorrect values for the requests parameter. The function also throws an exception if there is too many or too little values, as well as if the total length of the packet exceeds 255 bytes.
// send 1 byte (255 in this example) as SlaveId field data // and 2 bytes (255,100 in this example) as AdditionalData field data // RunIndicatorStatus field is 0 var message = builder.responseReportSlaveID(0, [ 255 ], [ 255, 100 ]);