giovynet.bt
Class Command

java.lang.Object
  extended by giovynet.bt.Command

public class Command
extends java.lang.Object

Command set for GiovynetBT.


Nested Class Summary
 class Command.GiovynetBTException
          Exception GiovynetBT.
 
Constructor Summary
Command(Com com)
           
 
Method Summary
 void connection(java.lang.String addres)
          Establishes a connection to another bluetooth device.
 void delTrusted(java.lang.String addres)
          Deletes trusted devices.
 void delTrustedAll()
          Deletes all trusted devices.
 void disconnects()
          Disconnects the wireless connection.
 Com getCom()
          Retrieves the com.
 void goToCommandMode()
          When GiovynetBT this in mode of data transfer, this method switches to commands mode, then GiovynetBT might receive commands.
 void inquireParameter(Parameter parameter)
          Retrieves local and remote device settings.
 void listTrusted(boolean includesNames, int timeout)
          Returns a list of bluetooth trusted device.
 void listVisible(boolean includesNames, int timeout)
          Returns a list of bluetooth visibles device.
 void returnDataMode()
          Return GiovynetBT to data transfer mode.
 void setBaudRate(Baud baud)
          Set baud rate for GiovynetBT.
 void setVariable(Variable variable, java.lang.String value)
          Updates local device settings.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Command

public Command(Com com)
Parameters:
com -
Method Detail

goToCommandMode

public void goToCommandMode()
                     throws Command.GiovynetBTException
When GiovynetBT this in mode of data transfer, this method switches to commands mode, then GiovynetBT might receive commands.

Throws:
Command.GiovynetBTException

setBaudRate

public void setBaudRate(Baud baud)
                 throws Command.GiovynetBTException
Set baud rate for GiovynetBT. Valid values include standard rates from 1200 through 460800.

Parameters:
baud -
Throws:
Command.GiovynetBTException

connection

public void connection(java.lang.String addres)
                throws Command.GiovynetBTException
Establishes a connection to another bluetooth device.

Parameters:
addres -
Throws:
Command.GiovynetBTException

delTrusted

public void delTrusted(java.lang.String addres)
                throws Command.GiovynetBTException
Deletes trusted devices.

Parameters:
addres -
Throws:
Command.GiovynetBTException

delTrustedAll

public void delTrustedAll()
                   throws Command.GiovynetBTException
Deletes all trusted devices.

Throws:
Command.GiovynetBTException

disconnects

public void disconnects()
                 throws Command.GiovynetBTException
Disconnects the wireless connection.

Throws:
Command.GiovynetBTException

listTrusted

public void listTrusted(boolean includesNames,
                        int timeout)
                 throws Command.GiovynetBTException
Returns a list of bluetooth trusted device. Timeout is the seconds before aborting the list visible attempt (default 15, max 60).

Parameters:
includesNames -
timeout -
Throws:
Command.GiovynetBTException

listVisible

public void listVisible(boolean includesNames,
                        int timeout)
                 throws Command.GiovynetBTException
Returns a list of bluetooth visibles device. Timeout is the seconds before aborting the list attempt (default 15, max 60).

Parameters:
includesNames -
timeout -
Throws:
Command.GiovynetBTException

returnDataMode

public void returnDataMode()
                    throws Command.GiovynetBTException
Return GiovynetBT to data transfer mode.

Throws:
Command.GiovynetBTException

inquireParameter

public void inquireParameter(Parameter parameter)
                      throws Command.GiovynetBTException
Retrieves local and remote device settings.

Parameters:
giovynet.bt.Parameter -
Throws:
Command.GiovynetBTException

setVariable

public void setVariable(Variable variable,
                        java.lang.String value)
                 throws Command.GiovynetBTException
Updates local device settings.

Parameters:
giovynet.bt.Variable -
value -
Throws:
Command.GiovynetBTException

getCom

public Com getCom()
Retrieves the com.

Returns:
com