Separate the serialport from socket to serial examples