Write data to serial device
write(
writes data to the serial device.myserialdevice
,data
,precision
)
The write
method stops when it finishes writing the specified
data to the device, or when the timeout period elapses.