Add callback to main when device discovered.