|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbr.org.fito.j8051.micro.MicroFarejador
public class MicroFarejador
This class have the collection of methods that make a easy way to build
a BluetoothConnection.
It`s is used for end users of J8051 for search devices, services, create a connection
and add hers Senders objects thats represents a Process in the microcontroller.
Esta classe contém uma série de metodos que torna fácil a criação de um
BluetoothConnection.
Ela é usada pelos usuários finais do J8051 para a busca de dispositivos, serviços,
criação de uma conexão e adicionar seus objetos Senders, que representa um processo
no microcontrolador.
Constructor Summary | |
---|---|
MicroFarejador()
Creates a new instance od MicroFarejador. |
Method Summary | |
---|---|
void |
addMicroFarejadorSender(MicroFarejadorSender sender)
Add a Sender to the sender`s list. |
void |
cancelarBuscaDispositivos()
Cancel a device search inexecution. |
void |
conectar(Dispositivo dispositivo)
Creates a new Bluetooth Connections with the selected devices. |
void |
enviarMensagemSimples(java.lang.String msg)
Send a simple message to the microcontroler connected. |
void |
fimConexao()
Finalize a bluetooth connection. |
void |
mensagemErro(java.lang.String mensagem)
|
java.util.Vector |
procurarDispositivos(boolean novaBusca)
Search for all bluetooth devices and return a Device objects list Procura por todos os dispositivos bluetooth ao redor, retornando uma lista de objectos Dispositivo. |
void |
receberMensagem(int processo,
java.lang.String mensagem)
Recieve a bluetooth device message and forward for the Sender Owner. |
void |
removeMicroFarejadorSender(MicroFarejadorSender sender)
Remove a Sender oject from the Sender`s list. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MicroFarejador() throws J8051Exception
J8051Exception
Method Detail |
---|
public void cancelarBuscaDispositivos() throws J8051Exception
J8051Exception
public java.util.Vector procurarDispositivos(boolean novaBusca) throws J8051Exception
novaBusca
-
J8051Exception
public void conectar(Dispositivo dispositivo) throws J8051Exception
dispositivo
-
J8051Exception
public void addMicroFarejadorSender(MicroFarejadorSender sender) throws J8051Exception
sender
-
J8051Exception
MicroFarejadorSender
public void removeMicroFarejadorSender(MicroFarejadorSender sender) throws J8051Exception
sender
-
J8051Exception
public void enviarMensagemSimples(java.lang.String msg) throws J8051Exception
msg
-
J8051Exception
public void fimConexao()
fimConexao
in interface ResponseListener
public void receberMensagem(int processo, java.lang.String mensagem)
receberMensagem
in interface ResponseListener
processo
- mensagem
- public void mensagemErro(java.lang.String mensagem)
mensagemErro
in interface ResponseListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |