#include "NimBLEDevice.h" #include "driver/gpio.h" extern "C" {void app_main(void);} #define SERVICE_UUID "4fafc201-1fb5-459e-8fcc-c5c9c331914b" // LED pins #define LEDR GPIO_NUM_16 #define LEDG GPIO_NUM_17 #define LEDB GPIO_NUM_18 #define OUTPUT_PIN (1ULL<getElement(); pElem->createModel(BT_MESH_MODEL_ID_GEN_ONOFF_SRV, new onOffSrvModelCallbacks()); //pElem = pMesh->createElement(); pElem->createModel(BT_MESH_MODEL_ID_GEN_LEVEL_SRV, new levelSrvModelCallbacks()); pMesh->start(); }