Move creation of the serial and udp connections to the VirtualDevice class
Connection: Add the timeout parameter to the constructor