Syntax
boolean begin(
    int32_t service_nums, 
    ...
);
ContentsIndex
PreviousUpNext
LGATTServerClass::begin Method
LGATTServerClass Class | Example
Syntax
boolean begin(
    int32_t service_nums, 
    ...
);
Description

This function initializes Bluetooth 4.0 module and sets up a profile.

Parameters
Parameters 
Description 
int32_t service_nums 
Number of services of your profile.
...: Objects of LGATTService 
Returns

true: Successful. 

false: Failed.

Example
#include <LGATTSUart.h>
#include <LGATTSABC.h>
LGATTSUart uart;
LGATTUT abc;
 
void setup() {
  // Insert your setup code here to run it once:
  LGATTServer.begin(2, &uart, &abc);
}
File

LGATTServer.h

Class