Code: Select all
static void button_tap_cb(void* arg)
{
static int thingy = 5;
ESP_LOGI(TAG, "tap cb");
if(initial == true){
initial = false;
return;
}
board_led_operation(dummy_strip, 0, 1);
if(thingy > 0){
thingy = thingy - 1;
return;
}
esp_bt_controller_disable();
const int wakeup_time_sec = 10;
esp_sleep_enable_timer_wakeup(wakeup_time_sec * 1000000);
esp_deep_sleep_start();
// esp_ble_mesh_node_local_reset();
// esp_ble_mesh_node_prov_enable(ESP_BLE_MESH_PROV_ADV | ESP_BLE_MESH_PROV_GATT);
}
Code: Select all
I (276) esp_image: segment 3: paddr=00100dd4 vaddr=3fc907I (337) cpu_start: Pro cpu start user code
I (337) cpu_start: cpu freq: 160000000
I (337) cpu_start: Application information:
I (340) cpu_start: Project name: onoff_client
I (345) cpu_start: App version: 568ef7d-dirty
I (351) cpu_start: Compile time: Nov 14 2022 10:23:55
I (357) cpu_start: ELF file SHA256: 33f64144e06a61c9...
I (363) cpu_start: ESP-IDF: v4.3.1-dirty
I (368) heap_init: Initializing. RAM available for dynamic allocation:
I (375) heap_init: At 3FC9A810 len 000257F0 (149 KiB): DRAM
I (382) heap_init: At 3FCC0000 len 0001F060 (124 KiB): STACK/DRAM
I (388) heap_init: At 50000018 len 00001FE8 (7 KiB): RTCRAM