|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbr.org.fito.j8051.bluetooth.BluetoothConnection
public class BluetoothConnection
Class thats represents a bluetooth connection, providing communications functions.
Classe que representa uma conexão bluetooth, forncecendo funcionalidades de comunicacao.
Constructor Summary | |
---|---|
BluetoothConnection(javax.bluetooth.ServiceRecord record,
ResponseListener respList)
Create an instance of BluetoohConnection with a ServiceRecord and a ResponseLiestener objects. |
Method Summary | |
---|---|
void |
close()
Close a phisical connection with the bluetooth device. |
void |
enviarMensagem(java.lang.String msg,
int processo,
int prioridade)
Send a message to the microcontroler A message is composed by a identification of the process, the priority and the message i`ts self. |
void |
open()
Open a phisical connection whith the bluetooth device. |
void |
run()
Overide method of Thread class that starts messages between cellphone and the microcontroller. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BluetoothConnection(javax.bluetooth.ServiceRecord record, ResponseListener respList)
record
- respList
- ResponseListener
Method Detail |
---|
public void open() throws java.lang.Exception
java.lang.Exception
public void close() throws java.lang.Exception
java.lang.Exception
public void enviarMensagem(java.lang.String msg, int processo, int prioridade) throws java.lang.Exception
msg
- processo
- prioridade
-
java.lang.Exception
public void run()
run
in interface java.lang.Runnable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |