WaspBT.h File Reference

Library for managing the Bluetooth Board. More...

#include <inttypes.h>
#include "WaspBTConstants.h"

Include dependency graph for WaspBT.h:

Go to the source code of this file.

Data Structures

struct  Device
 Structure : used for storing the discovered devices. More...
class  WaspBT
 WaspBT Class. More...

Defines

#define BT_ERROR_SECURITY   0
 BT Error Flag. Error while setting security parameters.
#define BT_ERROR_ON   1
 BT Error Flag. Error while powering the module.
#define BT_ERROR_REMOVING_CONNECTION   2
 BT Error Flag. Error while removing a connection.
#define BT_ERROR_SENDING_DATA   4
 BT Error Flag. Error while sending data.
#define BT_ERROR_REMOVING_TD   8
 BT Error Flag. Error while removing a trusted device.
#define BT_ERROR_MAC   16
 BT Error Flag. Error while getting our own mac.
#define BT_ERROR_CONNECTING   32
 BT Error Flag. Error while connecting to another device.
#define BT_ERROR_DISC   64
 BT Error Flag. Error while discovering a device.
#define BT_ERROR_SCAN   128
 BT Error Flag. Error while scanning the network.
#define BT_ERROR_RESET   256
 BT Error Flag. Error while resetting the device.
#define BT_ERROR_SERVICE   512
 BT Error Flag. Error while setting service parameters.
#define BT_ERROR_DISC_OPT   1024
 BT Error Flag. Error while setting discovery options.
#define BT_ERROR_ACCEPT   2048
 BT Error Flag. Error while setting auto accept incoming connections.
#define BT_ERROR_NAME   4096
 BT Error Flag. Error while setting public name.
#define BT_ERROR_STREAM   8192
 BT Error Flag. Error while setting stream connection.

Variables

WaspBT BT


Detailed Description

Library for managing the Bluetooth Board.

Copyright (C) 2010 Libelium Comunicaciones Distribuidas S.L. http://www.libelium.com

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 2.1 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

Version: 0.1

Design: David Gascón

Implementation: Alberto Bielsa, Manuel Calahorra

Definition in file WaspBT.h.


Define Documentation

#define BT_ERROR_ACCEPT   2048

BT Error Flag. Error while setting auto accept incoming connections.

Definition at line 105 of file WaspBT.h.

Referenced by WaspBT::setAutoAccept().

#define BT_ERROR_CONNECTING   32

BT Error Flag. Error while connecting to another device.

Definition at line 99 of file WaspBT.h.

Referenced by WaspBT::createConnection().

#define BT_ERROR_DISC   64

BT Error Flag. Error while discovering a device.

Definition at line 100 of file WaspBT.h.

Referenced by WaspBT::discoverDevice().

#define BT_ERROR_DISC_OPT   1024

BT Error Flag. Error while setting discovery options.

Definition at line 104 of file WaspBT.h.

Referenced by WaspBT::setDiscoveryOptions().

#define BT_ERROR_MAC   16

BT Error Flag. Error while getting our own mac.

Definition at line 98 of file WaspBT.h.

Referenced by WaspBT::getOwnMac().

#define BT_ERROR_NAME   4096

BT Error Flag. Error while setting public name.

Definition at line 106 of file WaspBT.h.

Referenced by WaspBT::setPublicName().

#define BT_ERROR_ON   1

BT Error Flag. Error while powering the module.

Definition at line 94 of file WaspBT.h.

Referenced by WaspBT::ON().

#define BT_ERROR_REMOVING_CONNECTION   2

BT Error Flag. Error while removing a connection.

Definition at line 95 of file WaspBT.h.

Referenced by WaspBT::removeConnection().

#define BT_ERROR_REMOVING_TD   8

BT Error Flag. Error while removing a trusted device.

Definition at line 97 of file WaspBT.h.

Referenced by WaspBT::removeTrustedDevice().

#define BT_ERROR_RESET   256

BT Error Flag. Error while resetting the device.

Definition at line 102 of file WaspBT.h.

Referenced by WaspBT::reset().

#define BT_ERROR_SCAN   128

BT Error Flag. Error while scanning the network.

Definition at line 101 of file WaspBT.h.

Referenced by WaspBT::scanNetwork().

#define BT_ERROR_SECURITY   0

BT Error Flag. Error while setting security parameters.

Definition at line 93 of file WaspBT.h.

Referenced by WaspBT::setSecurity().

#define BT_ERROR_SENDING_DATA   4

BT Error Flag. Error while sending data.

Definition at line 96 of file WaspBT.h.

Referenced by WaspBT::sendData().

#define BT_ERROR_SERVICE   512

BT Error Flag. Error while setting service parameters.

Definition at line 103 of file WaspBT.h.

Referenced by WaspBT::setServiceParameters().

#define BT_ERROR_STREAM   8192

BT Error Flag. Error while setting stream connection.

Definition at line 107 of file WaspBT.h.

Referenced by WaspBT::createStreamConnection().


Variable Documentation

Definition at line 682 of file WaspBT.cpp.


Generated on Tue Jul 20 09:30:57 2010 for WaspmoteAPI by  doxygen 1.5.6