Java Code Examples for javax.bluetooth.DeviceClass
The following examples show how to use
javax.bluetooth.DeviceClass.
These examples are extracted from open source projects.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source Project: jolie Author: jolie File: BluetoothService.java License: GNU Lesser General Public License v2.1 | 5 votes |
public void deviceDiscovered( RemoteDevice btDevice, DeviceClass cod ) { Value dValue = Value.create(); dValue.getFirstChild( "address" ).setValue( btDevice.getBluetoothAddress() ); try { dValue.getFirstChild( "name" ).setValue( btDevice.getFriendlyName( true ) ); } catch( IOException e ) { } value.getChildren( "device" ).add( dValue ); }
Example #2
Source Project: pluotsorbet Author: mozilla File: SelectServiceHandler.java License: GNU General Public License v2.0 | 5 votes |
public void deviceDiscovered(RemoteDevice btDevice, DeviceClass cod) { // if this bloototh device was found in preknown or // cached devices skips it now. if (btDevsHash.put(btDevice, btDevice) == null) { btDevs.addElement(btDevice); } }
Example #3
Source Project: Ardulink-1 Author: Ardulink File: ArdulinkDiscoveryListener.java License: Apache License 2.0 | 4 votes |
@Override public void deviceDiscovered(RemoteDevice remoteDevice, DeviceClass deviceClass) { devices.add(remoteDevice); }
Example #4
Source Project: pluotsorbet Author: mozilla File: InquiryResult.java License: GNU General Public License v2.0 | 4 votes |
public InquiryResult(String addr, int cod) { address = addr; deviceClass = new DeviceClass(cod); }
Example #5
Source Project: pluotsorbet Author: mozilla File: InquiryResult.java License: GNU General Public License v2.0 | 4 votes |
public DeviceClass getDeviceClass() { return deviceClass; }
Example #6
Source Project: pluotsorbet Author: mozilla File: LocalDeviceImpl.java License: GNU General Public License v2.0 | 4 votes |
public DeviceClass getDeviceClass() { return BCC.getInstance().getDeviceClass(); }
Example #7
Source Project: blucat Author: ieee8023 File: ListServices.java License: GNU General Public License v2.0 | 4 votes |
@Override public void deviceDiscovered(RemoteDevice arg0, DeviceClass arg1) { //PrintUtil.out.println("deviceDiscovered"); }
Example #8
Source Project: jolie Author: jolie File: BTServiceDiscoveryListener.java License: GNU Lesser General Public License v2.1 | votes |
public void deviceDiscovered( RemoteDevice btDevice, DeviceClass cod ) {}