added getDeviceStatus method to get information about devices in the
network.