Basic implementation of device discovery