public static void main( String[] args )
{
System.out.println( "Connecting BLED112 Dongle..." );
BGAPITransport bgapi = BLED112.connectBLED112();
bgapi.addListener(new BGAPIPacketLogger());
BGAPI impl = new BGAPI(bgapi);
impl.addListener(new SimpleDiscovery());
try {
Thread.sleep(500);
} catch (InterruptedException ex) {
Logger.getLogger(SimpleDiscovery.class.getName()).log(Level.SEVERE, null, ex);
}
System.out.println( "Requesting Version Number..." );
impl.send_system_get_info();
impl.send_system_hello();
impl.send_gap_set_scan_parameters(10, 250, 1);
impl.send_gap_discover(1);
}