void handleEvents();
void handleEvents();
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.
None.
#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(); }
LGATTServer.h