All Downloads are FREE. Search and download functionalities are using the official Maven repository.

lejos.hardware.RemoteBTDevice Maven / Gradle / Ivy

Go to download

leJOS (pronounced like the Spanish word "lejos" for "far") is a tiny Java Virtual Machine. In 2013 it was ported to the LEGO EV3 brick.

The newest version!
package lejos.hardware;

import java.io.Serializable;

public class RemoteBTDevice implements Serializable {
	
	private static final long serialVersionUID = -1668354353670941450L;
	private String name;
	private byte[] address;
	private int cod;
	
	public RemoteBTDevice(String name, byte[] address, int cod) {
		this.name = name;
		this.address = address;
		this.cod = cod;
	}
	
	public String getName() {
		return name;
	}
	
	public byte[] getDeviceAddress() {
		return address;
	}
	
	public int getDeviceClass() {
		return cod;
	}
	
	public String getAddress() {
	    return Bluetooth.getAddress(address);
	}
	
	public void authenticate(String pin) {
		
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy