struct Core::Bluetooth::IGattPeripheral
Overview
Top-level interface instantiates BT Adapter and provices access to GATT Peripheral. More…
#include <coregattperipheral.h> struct IGattPeripheral: public Core::IPropertyHandler { // fields static const InterfaceID kIID = FOUR_CHAR_ID ('B', 'T', 'G', 'P'); // methods virtual void startup () = 0; virtual void shutdown () = 0; virtual int getNumServices () const = 0; virtual IGattPeripheralService* getService (int index) const = 0; virtual ErrorCode createServiceAsync (UIDRef uuid) = 0; virtual void addObserver (IGattPeripheralObserver* observer) = 0; virtual void removeObserver (IGattPeripheralObserver* observer) = 0; };
Inherited Members
public: // fields static const InterfaceID kIID = 0; // methods virtual void setProperty (const Property& value) = 0; virtual void getProperty (Property& value) = 0; virtual void release () = 0;
Detailed Documentation
Top-level interface instantiates BT Adapter and provices access to GATT Peripheral.
Methods
virtual void startup () = 0
Triggers startup sequence if not already started.
virtual void shutdown () = 0
Triggers shutdown sequence if not already started.
virtual ErrorCode createServiceAsync (UIDRef uuid) = 0
Triggers creation of Service, instances stored in member vector.
returns callId to be passed with Handler