giovynet.bt
Enum Variable

java.lang.Object
  extended by java.lang.Enum<Variable>
      extended by giovynet.bt.Variable
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Variable>

public enum Variable
extends java.lang.Enum<Variable>

GiovynetBT Variables.


Enum Constant Summary
CONNECTABLE
          Determines whether a remote bluetooth device can establish a conection.
ECBONDING
          Determines the mode EasyConnect boundig/pairing.
ECCONNECTION
          Determines the state from EasyConnect connection.
ENCRYPTION
          Determines whether transmitted data is encrypted or sent in the clear.
FLOW
          Determines whether flow control,RTS & CTS, is used for GiovynetBT communications.
LINK_TIMEOUT
          The maximum amount of time, in seconds, that GiovynetBT will try recover the connection, if lost, before dropping the coneccion.
PARITY
          Determines whether parity is used for GiovynetBT communications.
PASSKEY
          Passkey that is used when a connection is established with a new device.
SECURITY
          Provides control over whether only trusted devices are permitted to connect.
SLEEP
          Deep Sleep is an aggressive sleep mode which clocks down the CPU in the GiovynetBT to conserve power.
SNIFF
          Sniff mode is a power management feature which applies to active connections an configures a schedule for communications between the conected device, during idle periods.
TRUSTED_LIST
          Controls whether devices are added to the trusted device list.
TXPOWER
          Determine the maximum transmitter power the device will uses to maintain a connection.
VISIBLE
          Determines whether or not the device is visible to remote bluetooth devices.
 
Method Summary
 java.lang.String getValue()
          Gets the value of the variable.
static Variable valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Variable[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

CONNECTABLE

public static final Variable CONNECTABLE
Determines whether a remote bluetooth device can establish a conection. Valid values are "on" and "off".


ECBONDING

public static final Variable ECBONDING
Determines the mode EasyConnect boundig/pairing. Note that when setting up and using EasyConnect, one of the two devices must be the initiator and one must be the responder. The designation for which role the devices plays is determined by the ecbonding settin for it bounding/pairing setup and by the ecconnection setting once the device have already been paired. Valid values are "initiator" and "responding".


ECCONNECTION

public static final Variable ECCONNECTION
Determines the state from EasyConnect connection. Often the ecconnection state will follow the state of ecbounding, however it may be set independently. The defaults are "responder" and "auto" respectively. Valid values are "auto", "initiator" and "responder".


ENCRYPTION

public static final Variable ENCRYPTION
Determines whether transmitted data is encrypted or sent in the clear. The device uses 56-bit encryption to encrypt transmitted data. Valid values are "on" and "off".


FLOW

public static final Variable FLOW
Determines whether flow control,RTS & CTS, is used for GiovynetBT communications. Valid values are "none" and "hardware".


LINK_TIMEOUT

public static final Variable LINK_TIMEOUT
The maximum amount of time, in seconds, that GiovynetBT will try recover the connection, if lost, before dropping the coneccion. Valid values are integers from 1 to 40 in String format.


PARITY

public static final Variable PARITY
Determines whether parity is used for GiovynetBT communications. Valid values are "odd", "even" and "none".


PASSKEY

public static final Variable PASSKEY
Passkey that is used when a connection is established with a new device. It is recommended that the passkey is 8 to 16 digits in lengh. Valid values are strings of to 16 characters.


SECURITY

public static final Variable SECURITY
Provides control over whether only trusted devices are permitted to connect. Valid values are "on" and "off".


SLEEP

public static final Variable SLEEP
Deep Sleep is an aggressive sleep mode which clocks down the CPU in the GiovynetBT to conserve power. Valid values are "on", "off", and "idle".


SNIFF

public static final Variable SNIFF
Sniff mode is a power management feature which applies to active connections an configures a schedule for communications between the conected device, during idle periods. This saves power by enabling the transmitter to stay off as much as possible and in turn does increase latency of the first few bytes transmitted after and idle period. Valid values are "on" and "off".


TRUSTED_LIST

public static final Variable TRUSTED_LIST
Controls whether devices are added to the trusted device list. Valid values are "on" and "off".


TXPOWER

public static final Variable TXPOWER
Determine the maximum transmitter power the device will uses to maintain a connection. This is most often used to limit range as the lower the setting for txpower the less the range for connections will be. Valid values are integers from 1 to 10 in String format.


VISIBLE

public static final Variable VISIBLE
Determines whether or not the device is visible to remote bluetooth devices. Valid values are "on" and "off".

Method Detail

values

public static Variable[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (Variable c : Variable.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static Variable valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getValue

public java.lang.String getValue()
Gets the value of the variable.

Returns:
String