#define GPIO_DEEP_SLEEP_DURATION 10 // sleep x seconds and then wake up
RTC_DATA_ATTRstatictime_tlast;// remember last boot in RTC Memory
RTC_DATA_ATTRstaticuint32_tbootcount;// remember number of boots in RTC Memory
#ifdef __cplusplus
extern"C"{
#endif
uint8_ttemprature_sens_read();
//uint8_t g_phyFuns;
#ifdef __cplusplus
}
#endif
// See the following for generating UUIDs:
// https://www.uuidgenerator.net/
BLEAdvertising*pAdvertising;
structtimevalnow;
#define BEACON_UUID "8ec76ea3-6668-48da-9866-75be8bc86f4d" // UUID 1 128-Bit (may use linux tool uuidgen or random numbers via https://www.uuidgenerator.net/)
voidsetBeacon(){
BLEBeaconoBeacon=BLEBeacon();
oBeacon.setManufacturerId(0x4C00);// fake Apple 0x004C LSB (ENDIAN_CHANGE_U16!)