boolean begin( int32_t service_nums, ... );
boolean begin( int32_t service_nums, ... );
This function initializes Bluetooth 4.0 module and sets up a profile.
|
Parameters |
Description |
|
int32_t service_nums |
Number of services of your profile. ...: Objects of LGATTService |
true: Successful.
false: Failed.
#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); }
LGATTServer.h