javax.bluetooth.DeviceClass Java Examples
The following examples show how to use
javax.bluetooth.DeviceClass.
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 File: BluetoothService.java From jolie with 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 File: SelectServiceHandler.java From pluotsorbet with 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 File: ArdulinkDiscoveryListener.java From Ardulink-1 with Apache License 2.0 | 4 votes |
@Override public void deviceDiscovered(RemoteDevice remoteDevice, DeviceClass deviceClass) { devices.add(remoteDevice); }
Example #4
Source File: InquiryResult.java From pluotsorbet with GNU General Public License v2.0 | 4 votes |
public InquiryResult(String addr, int cod) { address = addr; deviceClass = new DeviceClass(cod); }
Example #5
Source File: InquiryResult.java From pluotsorbet with GNU General Public License v2.0 | 4 votes |
public DeviceClass getDeviceClass() { return deviceClass; }
Example #6
Source File: LocalDeviceImpl.java From pluotsorbet with GNU General Public License v2.0 | 4 votes |
public DeviceClass getDeviceClass() { return BCC.getInstance().getDeviceClass(); }
Example #7
Source File: ListServices.java From blucat with GNU General Public License v2.0 | 4 votes |
@Override public void deviceDiscovered(RemoteDevice arg0, DeviceClass arg1) { //PrintUtil.out.println("deviceDiscovered"); }
Example #8
Source File: BTServiceDiscoveryListener.java From jolie with GNU Lesser General Public License v2.1 | votes |
public void deviceDiscovered( RemoteDevice btDevice, DeviceClass cod ) {}