This api allows you to send information from serial to socket, or from socket to serial