public void scan(bool connectCheck)
        {
            _location = getCurrentLocation();
            _reciever.setLocation(_location);

            //register for broadcasts when device discovered
            var filter = new IntentFilter(BluetoothDevice.ActionFound);
            _activity.RegisterReceiver(_reciever, filter);

            //register for broadcast when discover has finished
            filter = new IntentFilter(BluetoothAdapter.ActionDiscoveryFinished);
            _activity.RegisterReceiver(_reciever, filter);

            Console.WriteLine("Getting current Paired Bluetooth Devices");
            //get current paired devices
            _currentPaired = getCurrentPairedDevices();

            Console.WriteLine("Discovering Bluetooth Devices.");
            //Discover New Devices
            _bluetooth.StartDiscovery();
        }
 public BTSearchResult(LOC location)
 {
     _location.Equals(location);
 }
예제 #3
0
 public void deepCopy(LOC orig)
 {
     _latitude = orig._latitude;
     _longitude = orig._longitude;
 }
예제 #4
0
 public void setLocation(LOC location)
 {
     _location = location;
     _location.deepCopy(location);
 }
 public LOC getCurrentLocation()
 {
     LOC location = new LOC();
     return location;
 }