I need a windows class library? that will connect to Ethernet and Serial devices and poll them on a set interval. I should be able to access the devices collection as a property of the class and within it the individual devices. Each device needs to have a? read network stream and write network stream method accessible.? It should have a public event for when data is received with the device ID and? received string as? variables.
It must operate as both a TCP Client and Server in Ethernet mode. Also it needs to detect when the connection is dropped, attempt to reconnect (or listen for a new connection) and raise a public event.
Each device should be retrievable by Name (string) and ID (integer).
## Deliverables
The class library should have a public method for adding new devices similar to adding new rows to a datatable.