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
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
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   Source File: ArdulinkDiscoveryListener.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public void deviceDiscovered(RemoteDevice remoteDevice, DeviceClass deviceClass) {
       devices.add(remoteDevice);
}
 
Example 4
Source Project: pluotsorbet   Source File: InquiryResult.java    License: GNU General Public License v2.0 4 votes vote down vote up
public InquiryResult(String addr, int cod) {
    address = addr;
    deviceClass = new DeviceClass(cod);
}
 
Example 5
Source Project: pluotsorbet   Source File: InquiryResult.java    License: GNU General Public License v2.0 4 votes vote down vote up
public DeviceClass getDeviceClass() {
    return deviceClass;
}
 
Example 6
Source Project: pluotsorbet   Source File: LocalDeviceImpl.java    License: GNU General Public License v2.0 4 votes vote down vote up
public DeviceClass getDeviceClass() {
    return BCC.getInstance().getDeviceClass();
}
 
Example 7
Source Project: blucat   Source File: ListServices.java    License: GNU General Public License v2.0 4 votes vote down vote up
@Override
public void deviceDiscovered(RemoteDevice arg0, DeviceClass arg1) {
	//PrintUtil.out.println("deviceDiscovered");
}
 
Example 8
public void deviceDiscovered( RemoteDevice btDevice, DeviceClass cod ) {}