flush non-transmitted data
status = modbus_flush(mbc) [status, ierr] = modbus_flush(mbc)
The modbus connection created with modbus_new_tcp or modbus_new_rtu
0 (or the number of flushed bytes) if flush was successful and -1 otherwise.
Erreur number.
Discard data received but not read
When called with one output argument, a Scilab error will occur when the flushing fails. When called with two output arguments, no Scilab error will occur but ierr
will contain the internal modbus error number.