Writes characters to the specified comm port.
- port
- The comm port to close. Required.
- buffer
- The string to write to the port. Required.
- Count
- The number of characters to write to the port. Optional. Defaults to the length of the buffer string.
0 if successfull, -1 on error.