modbusPalProject.notifyPDUnotServiced();
return false;
}
// get the slave:
ModbusSlave slave = modbusPalProject.getModbusSlave(slaveID);
byte functionCode = buffer[offset+0];
//
if( isExceptionResponse(buffer,offset)==true )
{
req.notifyExceptionResponse();
modbusPalProject.notifyExceptionResponse();
return false;
}
// retrive the pdu processor for the modbus function:
ModbusPduProcessor mspp = slave.getPduProcessor(functionCode);
if( mspp == null )
{
System.err.println("Unsupported function code "+functionCode);
//int length = makeExceptionResponse(functionCode,XC_ILLEGAL_FUNCTION, buffer, offset);
//ModbusPalRecorder.recordOutgoing(slaveID,buffer,offset,length);