|
Dawn Framework 1.0
Universal data acquisition framework for embedded systems
|
Environmental Sensing Service (ESS) for BLE Peripheral. More...
#include <prph_ess.hxx>
Public Types | |
| enum | { ESS_EXT_USER_DESCRIPTION = 1 , ESS_EXT_VALID_RANGE , ESS_EXT_MEASUREMENT , ESS_EXT_CONFIGURATION , ESS_EXT_TRIGGER_SETTING } |
| enum | { PRPH_ESS_TYPE_TEMP , PRPH_ESS_TYPE_HUM , PRPH_ESS_TYPE_PRESS , PRPH_ESS_TYPE_UVIDX , PRPH_ESS_TYPE_TWINDSPEED , PRPH_ESS_TYPE_TWINDDIR , PRPH_ESS_TYPE_GAS , PRPH_ESS_TYPE_LIGHT } |
Public Member Functions | |
| int | deinit () |
| Deinitialize service. | |
| int | init () |
| Initialize service. | |
| int | start () |
| Start service. | |
| int | stop () |
| Stop service. | |
Public Attributes | |
| IProtoNimblePrphCb * | cb |
| Callback interface to peripheral. | |
| const SObjectCfg::SObjectCfgItem * | desc |
| Configuration descriptor for this service. | |
| std::vector< SObjectId::ObjectId > | vio |
| Vector of I/O objects exposed by this service. | |
Environmental Sensing Service (ESS) for BLE Peripheral.
This class implements the Bluetooth SIG Environmental Sensing Service (0x181A).
Definition at line 27 of file prph_ess.hxx.
| anonymous enum |
Definition at line 52 of file prph_ess.hxx.
| anonymous enum |
Definition at line 61 of file prph_ess.hxx.
|
virtual |
Deinitialize service.
Releases all allocated resources for this service.
Implements dawn::IProtoNimblePrphService.
Definition at line 1063 of file prph_ess.cxx.
|
virtual |
Initialize service.
Allocates service resources and prepares characteristics.
Implements dawn::IProtoNimblePrphService.
Definition at line 1035 of file prph_ess.cxx.
References dawn::IProtoNimblePrphService::cb, dawn::IProtoNimblePrphService::desc, and dawn::IProtoNimblePrphCb::serviceRegister().
|
virtual |
Start service.
Registers the service with the GATT database.
Implements dawn::IProtoNimblePrphService.
Definition at line 1069 of file prph_ess.cxx.
References dawn::IProtoNimblePrphService::cb, and dawn::IProtoNimblePrphCb::startService().
|
virtual |
Stop service.
Removes the service from the GATT database.
Implements dawn::IProtoNimblePrphService.
Definition at line 1095 of file prph_ess.cxx.
References dawn::IProtoNimblePrphService::cb, and dawn::IProtoNimblePrphCb::stopService().
|
inherited |
|
inherited |
|
inherited |