"DeviceFound (Name As String, MacAddress As String, rssi As Int)",
public boolean Scan(final BA ba, long PeriodMs, String[] ServiceUUIDs) {
scanCallback = new LeScanCallback() {
@Override
public void onLeScan(BluetoothDevice device, int rssi, byte[] scanRecord) {
devices.put(device.getAddress(), device);
ba.raiseEventFromDifferentThread(BleManager.this, null, 0, eventName + "_devicefound", false,
new Object[] {device.getName(), device.getAddress(), rssi});
}
};