Syntax
void handleEvents();
ContentsIndex
PreviousUpNext
LGATTServerClass::handleEvents Method
LGATTServerClass Class | Example
Syntax
void handleEvents();
Description

This function handles events for Bluetooth 4.0 and process all the requests that have been added to the event queue. You can override LGATTService if you need to get a corresponding event.

Returns

None.

Example
#include <LGATTSUart.h>
#include <LGATTSABC.h>
 
LGATTSUart uart;
LGATTUT abc;

void setup() {
  // Insert your setup code here to run it once:
  LGATTServer.begin(g_gatts_uuid, 2, &uart, &abc);
}

void loop() {
 // Insert your main code here to run it repeatedly:
 delay(1000);
 LGATTServer.handleEvents();
}
File

LGATTServer.h

Class