Chore: initial commit

This commit is contained in:
Dorian Zedler 2023-12-03 16:48:40 +01:00
commit c55f84d690
Signed by: dorian
GPG Key ID: 989DE36109AFA354
16 changed files with 4265 additions and 0 deletions

3
.gitmodules vendored Normal file
View File

@ -0,0 +1,3 @@
[submodule "firmware/lib/esp-nimble-cpp"]
path = firmware/lib/esp-nimble-cpp
url = https://itsblue.dev/ScStw/esp-nimble-cpp.git

364
.vscode/c_cpp_properties.json vendored Normal file
View File

@ -0,0 +1,364 @@
//
// !!! WARNING !!! AUTO-GENERATED FILE!
// PLEASE DO NOT MODIFY IT AND USE "platformio.ini":
// https://docs.platformio.org/page/projectconf/section_env_build.html#build-flags
//
{
"configurations": [
{
"name": "PlatformIO",
"includePath": [
"/home/dorian/Documents/git/ScStw/bluetooth-buzzer/include",
"/home/dorian/Documents/git/ScStw/bluetooth-buzzer/src",
"/home/dorian/Documents/git/ScStw/bluetooth-buzzer/lib/esp-nimble-cpp/src",
"/home/dorian/.platformio/packages/framework-espidf/components/xtensa/include",
"/home/dorian/.platformio/packages/framework-espidf/components/xtensa/esp32/include",
"/home/dorian/Documents/git/ScStw/bluetooth-buzzer/.pio/build/esp32dev/config",
"/home/dorian/.platformio/packages/framework-espidf/components/newlib/platform_include",
"/home/dorian/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/include",
"/home/dorian/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/portable/xtensa/include",
"/home/dorian/.platformio/packages/framework-espidf/components/freertos/esp_additions/include/freertos",
"/home/dorian/.platformio/packages/framework-espidf/components/freertos/esp_additions/include",
"/home/dorian/.platformio/packages/framework-espidf/components/freertos/esp_additions/arch/xtensa/include",
"/home/dorian/.platformio/packages/framework-espidf/components/esp_hw_support/include",
"/home/dorian/.platformio/packages/framework-espidf/components/esp_hw_support/include/soc",
"/home/dorian/.platformio/packages/framework-espidf/components/esp_hw_support/include/soc/esp32",
"/home/dorian/.platformio/packages/framework-espidf/components/esp_hw_support/port/esp32",
"/home/dorian/.platformio/packages/framework-espidf/components/esp_hw_support/port/esp32/private_include",
"/home/dorian/.platformio/packages/framework-espidf/components/heap/include",
"/home/dorian/.platformio/packages/framework-espidf/components/log/include",
"/home/dorian/.platformio/packages/framework-espidf/components/soc/include",
"/home/dorian/.platformio/packages/framework-espidf/components/soc/esp32",
"/home/dorian/.platformio/packages/framework-espidf/components/soc/esp32/include",
"/home/dorian/.platformio/packages/framework-espidf/components/hal/esp32/include",
"/home/dorian/.platformio/packages/framework-espidf/components/hal/include",
"/home/dorian/.platformio/packages/framework-espidf/components/hal/platform_port/include",
"/home/dorian/.platformio/packages/framework-espidf/components/esp_rom/include",
"/home/dorian/.platformio/packages/framework-espidf/components/esp_rom/include/esp32",
"/home/dorian/.platformio/packages/framework-espidf/components/esp_rom/esp32",
"/home/dorian/.platformio/packages/framework-espidf/components/esp_common/include",
"/home/dorian/.platformio/packages/framework-espidf/components/esp_system/include",
"/home/dorian/.platformio/packages/framework-espidf/components/esp_system/port/soc",
"/home/dorian/.platformio/packages/framework-espidf/components/esp_system/port/include/private",
"/home/dorian/.platformio/packages/framework-espidf/components/lwip/include",
"/home/dorian/.platformio/packages/framework-espidf/components/lwip/include/apps",
"/home/dorian/.platformio/packages/framework-espidf/components/lwip/include/apps/sntp",
"/home/dorian/.platformio/packages/framework-espidf/components/lwip/lwip/src/include",
"/home/dorian/.platformio/packages/framework-espidf/components/lwip/port/include",
"/home/dorian/.platformio/packages/framework-espidf/components/lwip/port/freertos/include",
"/home/dorian/.platformio/packages/framework-espidf/components/lwip/port/esp32xx/include",
"/home/dorian/.platformio/packages/framework-espidf/components/lwip/port/esp32xx/include/arch",
"/home/dorian/.platformio/packages/framework-espidf/components/esp_ringbuf/include",
"/home/dorian/.platformio/packages/framework-espidf/components/efuse/include",
"/home/dorian/.platformio/packages/framework-espidf/components/efuse/esp32/include",
"/home/dorian/.platformio/packages/framework-espidf/components/esp_timer/include",
"/home/dorian/.platformio/packages/framework-espidf/components/driver/include",
"/home/dorian/.platformio/packages/framework-espidf/components/driver/deprecated",
"/home/dorian/.platformio/packages/framework-espidf/components/driver/analog_comparator/include",
"/home/dorian/.platformio/packages/framework-espidf/components/driver/dac/include",
"/home/dorian/.platformio/packages/framework-espidf/components/driver/gpio/include",
"/home/dorian/.platformio/packages/framework-espidf/components/driver/gptimer/include",
"/home/dorian/.platformio/packages/framework-espidf/components/driver/i2c/include",
"/home/dorian/.platformio/packages/framework-espidf/components/driver/i2s/include",
"/home/dorian/.platformio/packages/framework-espidf/components/driver/ledc/include",
"/home/dorian/.platformio/packages/framework-espidf/components/driver/mcpwm/include",
"/home/dorian/.platformio/packages/framework-espidf/components/driver/parlio/include",
"/home/dorian/.platformio/packages/framework-espidf/components/driver/pcnt/include",
"/home/dorian/.platformio/packages/framework-espidf/components/driver/rmt/include",
"/home/dorian/.platformio/packages/framework-espidf/components/driver/sdio_slave/include",
"/home/dorian/.platformio/packages/framework-espidf/components/driver/sdmmc/include",
"/home/dorian/.platformio/packages/framework-espidf/components/driver/sigma_delta/include",
"/home/dorian/.platformio/packages/framework-espidf/components/driver/spi/include",
"/home/dorian/.platformio/packages/framework-espidf/components/driver/temperature_sensor/include",
"/home/dorian/.platformio/packages/framework-espidf/components/driver/touch_sensor/include",
"/home/dorian/.platformio/packages/framework-espidf/components/driver/twai/include",
"/home/dorian/.platformio/packages/framework-espidf/components/driver/uart/include",
"/home/dorian/.platformio/packages/framework-espidf/components/driver/usb_serial_jtag/include",
"/home/dorian/.platformio/packages/framework-espidf/components/driver/touch_sensor/esp32/include",
"/home/dorian/.platformio/packages/framework-espidf/components/esp_pm/include",
"/home/dorian/.platformio/packages/framework-espidf/components/mbedtls/port/include",
"/home/dorian/.platformio/packages/framework-espidf/components/mbedtls/mbedtls/include",
"/home/dorian/.platformio/packages/framework-espidf/components/mbedtls/mbedtls/library",
"/home/dorian/.platformio/packages/framework-espidf/components/mbedtls/esp_crt_bundle/include",
"/home/dorian/.platformio/packages/framework-espidf/components/esp_app_format/include",
"/home/dorian/.platformio/packages/framework-espidf/components/bootloader_support/include",
"/home/dorian/.platformio/packages/framework-espidf/components/bootloader_support/bootloader_flash/include",
"/home/dorian/.platformio/packages/framework-espidf/components/esp_partition/include",
"/home/dorian/.platformio/packages/framework-espidf/components/app_update/include",
"/home/dorian/.platformio/packages/framework-espidf/components/esp_mm/include",
"/home/dorian/.platformio/packages/framework-espidf/components/spi_flash/include",
"/home/dorian/.platformio/packages/framework-espidf/components/pthread/include",
"/home/dorian/.platformio/packages/framework-espidf/components/app_trace/include",
"/home/dorian/.platformio/packages/framework-espidf/components/esp_event/include",
"/home/dorian/.platformio/packages/framework-espidf/components/nvs_flash/include",
"/home/dorian/.platformio/packages/framework-espidf/components/esp_phy/include",
"/home/dorian/.platformio/packages/framework-espidf/components/esp_phy/esp32/include",
"/home/dorian/.platformio/packages/framework-espidf/components/vfs/include",
"/home/dorian/.platformio/packages/framework-espidf/components/esp_netif/include",
"/home/dorian/.platformio/packages/framework-espidf/components/wpa_supplicant/include",
"/home/dorian/.platformio/packages/framework-espidf/components/wpa_supplicant/port/include",
"/home/dorian/.platformio/packages/framework-espidf/components/wpa_supplicant/esp_supplicant/include",
"/home/dorian/.platformio/packages/framework-espidf/components/esp_coex/include",
"/home/dorian/.platformio/packages/framework-espidf/components/esp_wifi/include",
"/home/dorian/.platformio/packages/framework-espidf/components/esp_wifi/wifi_apps/include",
"/home/dorian/.platformio/packages/framework-espidf/components/bt/include/esp32/include",
"/home/dorian/.platformio/packages/framework-espidf/components/bt/common/osi/include",
"/home/dorian/.platformio/packages/framework-espidf/components/bt/common/api/include/api",
"/home/dorian/.platformio/packages/framework-espidf/components/bt/common/btc/profile/esp/blufi/include",
"/home/dorian/.platformio/packages/framework-espidf/components/bt/common/btc/profile/esp/include",
"/home/dorian/.platformio/packages/framework-espidf/components/bt/host/nimble/nimble/nimble/host/include",
"/home/dorian/.platformio/packages/framework-espidf/components/bt/host/nimble/nimble/nimble/host/services/ans/include",
"/home/dorian/.platformio/packages/framework-espidf/components/bt/host/nimble/nimble/nimble/host/services/bas/include",
"/home/dorian/.platformio/packages/framework-espidf/components/bt/host/nimble/nimble/nimble/host/services/dis/include",
"/home/dorian/.platformio/packages/framework-espidf/components/bt/host/nimble/nimble/nimble/host/services/gap/include",
"/home/dorian/.platformio/packages/framework-espidf/components/bt/host/nimble/nimble/nimble/host/services/gatt/include",
"/home/dorian/.platformio/packages/framework-espidf/components/bt/host/nimble/nimble/nimble/host/services/hr/include",
"/home/dorian/.platformio/packages/framework-espidf/components/bt/host/nimble/nimble/nimble/host/services/htp/include",
"/home/dorian/.platformio/packages/framework-espidf/components/bt/host/nimble/nimble/nimble/host/services/ias/include",
"/home/dorian/.platformio/packages/framework-espidf/components/bt/host/nimble/nimble/nimble/host/services/ipss/include",
"/home/dorian/.platformio/packages/framework-espidf/components/bt/host/nimble/nimble/nimble/host/services/lls/include",
"/home/dorian/.platformio/packages/framework-espidf/components/bt/host/nimble/nimble/nimble/host/services/prox/include",
"/home/dorian/.platformio/packages/framework-espidf/components/bt/host/nimble/nimble/nimble/host/services/tps/include",
"/home/dorian/.platformio/packages/framework-espidf/components/bt/host/nimble/nimble/nimble/host/util/include",
"/home/dorian/.platformio/packages/framework-espidf/components/bt/host/nimble/nimble/nimble/host/store/ram/include",
"/home/dorian/.platformio/packages/framework-espidf/components/bt/host/nimble/nimble/nimble/host/store/config/include",
"/home/dorian/.platformio/packages/framework-espidf/components/bt/porting/include",
"/home/dorian/.platformio/packages/framework-espidf/components/bt/host/nimble/nimble/porting/nimble/include",
"/home/dorian/.platformio/packages/framework-espidf/components/bt/host/nimble/port/include",
"/home/dorian/.platformio/packages/framework-espidf/components/bt/host/nimble/nimble/nimble/transport/include",
"/home/dorian/.platformio/packages/framework-espidf/components/bt/host/nimble/nimble/porting/npl/freertos/include",
"/home/dorian/.platformio/packages/framework-espidf/components/bt/host/nimble/nimble/nimble/include",
"/home/dorian/.platformio/packages/framework-espidf/components/bt/host/nimble/esp-hci/include",
"/home/dorian/.platformio/packages/framework-espidf/components/unity/include",
"/home/dorian/.platformio/packages/framework-espidf/components/unity/unity/src",
"/home/dorian/.platformio/packages/framework-espidf/components/cmock/CMock/src",
"/home/dorian/.platformio/packages/framework-espidf/components/console",
"/home/dorian/.platformio/packages/framework-espidf/components/http_parser",
"/home/dorian/.platformio/packages/framework-espidf/components/esp-tls",
"/home/dorian/.platformio/packages/framework-espidf/components/esp-tls/esp-tls-crypto",
"/home/dorian/.platformio/packages/framework-espidf/components/esp_adc/include",
"/home/dorian/.platformio/packages/framework-espidf/components/esp_adc/interface",
"/home/dorian/.platformio/packages/framework-espidf/components/esp_adc/esp32/include",
"/home/dorian/.platformio/packages/framework-espidf/components/esp_adc/deprecated/include",
"/home/dorian/.platformio/packages/framework-espidf/components/esp_eth/include",
"/home/dorian/.platformio/packages/framework-espidf/components/esp_gdbstub/include",
"/home/dorian/.platformio/packages/framework-espidf/components/esp_hid/include",
"/home/dorian/.platformio/packages/framework-espidf/components/tcp_transport/include",
"/home/dorian/.platformio/packages/framework-espidf/components/esp_http_client/include",
"/home/dorian/.platformio/packages/framework-espidf/components/esp_http_server/include",
"/home/dorian/.platformio/packages/framework-espidf/components/esp_https_ota/include",
"/home/dorian/.platformio/packages/framework-espidf/components/esp_psram/include",
"/home/dorian/.platformio/packages/framework-espidf/components/esp_lcd/include",
"/home/dorian/.platformio/packages/framework-espidf/components/esp_lcd/interface",
"/home/dorian/.platformio/packages/framework-espidf/components/protobuf-c/protobuf-c",
"/home/dorian/.platformio/packages/framework-espidf/components/protocomm/include/common",
"/home/dorian/.platformio/packages/framework-espidf/components/protocomm/include/security",
"/home/dorian/.platformio/packages/framework-espidf/components/protocomm/include/transports",
"/home/dorian/.platformio/packages/framework-espidf/components/esp_local_ctrl/include",
"/home/dorian/.platformio/packages/framework-espidf/components/espcoredump/include",
"/home/dorian/.platformio/packages/framework-espidf/components/espcoredump/include/port/xtensa",
"/home/dorian/.platformio/packages/framework-espidf/components/wear_levelling/include",
"/home/dorian/.platformio/packages/framework-espidf/components/sdmmc/include",
"/home/dorian/.platformio/packages/framework-espidf/components/fatfs/diskio",
"/home/dorian/.platformio/packages/framework-espidf/components/fatfs/vfs",
"/home/dorian/.platformio/packages/framework-espidf/components/fatfs/src",
"/home/dorian/.platformio/packages/framework-espidf/components/idf_test/include",
"/home/dorian/.platformio/packages/framework-espidf/components/idf_test/include/esp32",
"/home/dorian/.platformio/packages/framework-espidf/components/ieee802154/include",
"/home/dorian/.platformio/packages/framework-espidf/components/json/cJSON",
"/home/dorian/.platformio/packages/framework-espidf/components/mqtt/esp-mqtt/include",
"/home/dorian/.platformio/packages/framework-espidf/components/perfmon/include",
"/home/dorian/.platformio/packages/framework-espidf/components/spiffs/include",
"/home/dorian/.platformio/packages/framework-espidf/components/wifi_provisioning/include",
""
],
"browse": {
"limitSymbolsToIncludedHeaders": true,
"path": [
"/home/dorian/Documents/git/ScStw/bluetooth-buzzer/include",
"/home/dorian/Documents/git/ScStw/bluetooth-buzzer/src",
"/home/dorian/Documents/git/ScStw/bluetooth-buzzer/lib/esp-nimble-cpp/src",
"/home/dorian/.platformio/packages/framework-espidf/components/xtensa/include",
"/home/dorian/.platformio/packages/framework-espidf/components/xtensa/esp32/include",
"/home/dorian/Documents/git/ScStw/bluetooth-buzzer/.pio/build/esp32dev/config",
"/home/dorian/.platformio/packages/framework-espidf/components/newlib/platform_include",
"/home/dorian/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/include",
"/home/dorian/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/portable/xtensa/include",
"/home/dorian/.platformio/packages/framework-espidf/components/freertos/esp_additions/include/freertos",
"/home/dorian/.platformio/packages/framework-espidf/components/freertos/esp_additions/include",
"/home/dorian/.platformio/packages/framework-espidf/components/freertos/esp_additions/arch/xtensa/include",
"/home/dorian/.platformio/packages/framework-espidf/components/esp_hw_support/include",
"/home/dorian/.platformio/packages/framework-espidf/components/esp_hw_support/include/soc",
"/home/dorian/.platformio/packages/framework-espidf/components/esp_hw_support/include/soc/esp32",
"/home/dorian/.platformio/packages/framework-espidf/components/esp_hw_support/port/esp32",
"/home/dorian/.platformio/packages/framework-espidf/components/esp_hw_support/port/esp32/private_include",
"/home/dorian/.platformio/packages/framework-espidf/components/heap/include",
"/home/dorian/.platformio/packages/framework-espidf/components/log/include",
"/home/dorian/.platformio/packages/framework-espidf/components/soc/include",
"/home/dorian/.platformio/packages/framework-espidf/components/soc/esp32",
"/home/dorian/.platformio/packages/framework-espidf/components/soc/esp32/include",
"/home/dorian/.platformio/packages/framework-espidf/components/hal/esp32/include",
"/home/dorian/.platformio/packages/framework-espidf/components/hal/include",
"/home/dorian/.platformio/packages/framework-espidf/components/hal/platform_port/include",
"/home/dorian/.platformio/packages/framework-espidf/components/esp_rom/include",
"/home/dorian/.platformio/packages/framework-espidf/components/esp_rom/include/esp32",
"/home/dorian/.platformio/packages/framework-espidf/components/esp_rom/esp32",
"/home/dorian/.platformio/packages/framework-espidf/components/esp_common/include",
"/home/dorian/.platformio/packages/framework-espidf/components/esp_system/include",
"/home/dorian/.platformio/packages/framework-espidf/components/esp_system/port/soc",
"/home/dorian/.platformio/packages/framework-espidf/components/esp_system/port/include/private",
"/home/dorian/.platformio/packages/framework-espidf/components/lwip/include",
"/home/dorian/.platformio/packages/framework-espidf/components/lwip/include/apps",
"/home/dorian/.platformio/packages/framework-espidf/components/lwip/include/apps/sntp",
"/home/dorian/.platformio/packages/framework-espidf/components/lwip/lwip/src/include",
"/home/dorian/.platformio/packages/framework-espidf/components/lwip/port/include",
"/home/dorian/.platformio/packages/framework-espidf/components/lwip/port/freertos/include",
"/home/dorian/.platformio/packages/framework-espidf/components/lwip/port/esp32xx/include",
"/home/dorian/.platformio/packages/framework-espidf/components/lwip/port/esp32xx/include/arch",
"/home/dorian/.platformio/packages/framework-espidf/components/esp_ringbuf/include",
"/home/dorian/.platformio/packages/framework-espidf/components/efuse/include",
"/home/dorian/.platformio/packages/framework-espidf/components/efuse/esp32/include",
"/home/dorian/.platformio/packages/framework-espidf/components/esp_timer/include",
"/home/dorian/.platformio/packages/framework-espidf/components/driver/include",
"/home/dorian/.platformio/packages/framework-espidf/components/driver/deprecated",
"/home/dorian/.platformio/packages/framework-espidf/components/driver/analog_comparator/include",
"/home/dorian/.platformio/packages/framework-espidf/components/driver/dac/include",
"/home/dorian/.platformio/packages/framework-espidf/components/driver/gpio/include",
"/home/dorian/.platformio/packages/framework-espidf/components/driver/gptimer/include",
"/home/dorian/.platformio/packages/framework-espidf/components/driver/i2c/include",
"/home/dorian/.platformio/packages/framework-espidf/components/driver/i2s/include",
"/home/dorian/.platformio/packages/framework-espidf/components/driver/ledc/include",
"/home/dorian/.platformio/packages/framework-espidf/components/driver/mcpwm/include",
"/home/dorian/.platformio/packages/framework-espidf/components/driver/parlio/include",
"/home/dorian/.platformio/packages/framework-espidf/components/driver/pcnt/include",
"/home/dorian/.platformio/packages/framework-espidf/components/driver/rmt/include",
"/home/dorian/.platformio/packages/framework-espidf/components/driver/sdio_slave/include",
"/home/dorian/.platformio/packages/framework-espidf/components/driver/sdmmc/include",
"/home/dorian/.platformio/packages/framework-espidf/components/driver/sigma_delta/include",
"/home/dorian/.platformio/packages/framework-espidf/components/driver/spi/include",
"/home/dorian/.platformio/packages/framework-espidf/components/driver/temperature_sensor/include",
"/home/dorian/.platformio/packages/framework-espidf/components/driver/touch_sensor/include",
"/home/dorian/.platformio/packages/framework-espidf/components/driver/twai/include",
"/home/dorian/.platformio/packages/framework-espidf/components/driver/uart/include",
"/home/dorian/.platformio/packages/framework-espidf/components/driver/usb_serial_jtag/include",
"/home/dorian/.platformio/packages/framework-espidf/components/driver/touch_sensor/esp32/include",
"/home/dorian/.platformio/packages/framework-espidf/components/esp_pm/include",
"/home/dorian/.platformio/packages/framework-espidf/components/mbedtls/port/include",
"/home/dorian/.platformio/packages/framework-espidf/components/mbedtls/mbedtls/include",
"/home/dorian/.platformio/packages/framework-espidf/components/mbedtls/mbedtls/library",
"/home/dorian/.platformio/packages/framework-espidf/components/mbedtls/esp_crt_bundle/include",
"/home/dorian/.platformio/packages/framework-espidf/components/esp_app_format/include",
"/home/dorian/.platformio/packages/framework-espidf/components/bootloader_support/include",
"/home/dorian/.platformio/packages/framework-espidf/components/bootloader_support/bootloader_flash/include",
"/home/dorian/.platformio/packages/framework-espidf/components/esp_partition/include",
"/home/dorian/.platformio/packages/framework-espidf/components/app_update/include",
"/home/dorian/.platformio/packages/framework-espidf/components/esp_mm/include",
"/home/dorian/.platformio/packages/framework-espidf/components/spi_flash/include",
"/home/dorian/.platformio/packages/framework-espidf/components/pthread/include",
"/home/dorian/.platformio/packages/framework-espidf/components/app_trace/include",
"/home/dorian/.platformio/packages/framework-espidf/components/esp_event/include",
"/home/dorian/.platformio/packages/framework-espidf/components/nvs_flash/include",
"/home/dorian/.platformio/packages/framework-espidf/components/esp_phy/include",
"/home/dorian/.platformio/packages/framework-espidf/components/esp_phy/esp32/include",
"/home/dorian/.platformio/packages/framework-espidf/components/vfs/include",
"/home/dorian/.platformio/packages/framework-espidf/components/esp_netif/include",
"/home/dorian/.platformio/packages/framework-espidf/components/wpa_supplicant/include",
"/home/dorian/.platformio/packages/framework-espidf/components/wpa_supplicant/port/include",
"/home/dorian/.platformio/packages/framework-espidf/components/wpa_supplicant/esp_supplicant/include",
"/home/dorian/.platformio/packages/framework-espidf/components/esp_coex/include",
"/home/dorian/.platformio/packages/framework-espidf/components/esp_wifi/include",
"/home/dorian/.platformio/packages/framework-espidf/components/esp_wifi/wifi_apps/include",
"/home/dorian/.platformio/packages/framework-espidf/components/bt/include/esp32/include",
"/home/dorian/.platformio/packages/framework-espidf/components/bt/common/osi/include",
"/home/dorian/.platformio/packages/framework-espidf/components/bt/common/api/include/api",
"/home/dorian/.platformio/packages/framework-espidf/components/bt/common/btc/profile/esp/blufi/include",
"/home/dorian/.platformio/packages/framework-espidf/components/bt/common/btc/profile/esp/include",
"/home/dorian/.platformio/packages/framework-espidf/components/bt/host/nimble/nimble/nimble/host/include",
"/home/dorian/.platformio/packages/framework-espidf/components/bt/host/nimble/nimble/nimble/host/services/ans/include",
"/home/dorian/.platformio/packages/framework-espidf/components/bt/host/nimble/nimble/nimble/host/services/bas/include",
"/home/dorian/.platformio/packages/framework-espidf/components/bt/host/nimble/nimble/nimble/host/services/dis/include",
"/home/dorian/.platformio/packages/framework-espidf/components/bt/host/nimble/nimble/nimble/host/services/gap/include",
"/home/dorian/.platformio/packages/framework-espidf/components/bt/host/nimble/nimble/nimble/host/services/gatt/include",
"/home/dorian/.platformio/packages/framework-espidf/components/bt/host/nimble/nimble/nimble/host/services/hr/include",
"/home/dorian/.platformio/packages/framework-espidf/components/bt/host/nimble/nimble/nimble/host/services/htp/include",
"/home/dorian/.platformio/packages/framework-espidf/components/bt/host/nimble/nimble/nimble/host/services/ias/include",
"/home/dorian/.platformio/packages/framework-espidf/components/bt/host/nimble/nimble/nimble/host/services/ipss/include",
"/home/dorian/.platformio/packages/framework-espidf/components/bt/host/nimble/nimble/nimble/host/services/lls/include",
"/home/dorian/.platformio/packages/framework-espidf/components/bt/host/nimble/nimble/nimble/host/services/prox/include",
"/home/dorian/.platformio/packages/framework-espidf/components/bt/host/nimble/nimble/nimble/host/services/tps/include",
"/home/dorian/.platformio/packages/framework-espidf/components/bt/host/nimble/nimble/nimble/host/util/include",
"/home/dorian/.platformio/packages/framework-espidf/components/bt/host/nimble/nimble/nimble/host/store/ram/include",
"/home/dorian/.platformio/packages/framework-espidf/components/bt/host/nimble/nimble/nimble/host/store/config/include",
"/home/dorian/.platformio/packages/framework-espidf/components/bt/porting/include",
"/home/dorian/.platformio/packages/framework-espidf/components/bt/host/nimble/nimble/porting/nimble/include",
"/home/dorian/.platformio/packages/framework-espidf/components/bt/host/nimble/port/include",
"/home/dorian/.platformio/packages/framework-espidf/components/bt/host/nimble/nimble/nimble/transport/include",
"/home/dorian/.platformio/packages/framework-espidf/components/bt/host/nimble/nimble/porting/npl/freertos/include",
"/home/dorian/.platformio/packages/framework-espidf/components/bt/host/nimble/nimble/nimble/include",
"/home/dorian/.platformio/packages/framework-espidf/components/bt/host/nimble/esp-hci/include",
"/home/dorian/.platformio/packages/framework-espidf/components/unity/include",
"/home/dorian/.platformio/packages/framework-espidf/components/unity/unity/src",
"/home/dorian/.platformio/packages/framework-espidf/components/cmock/CMock/src",
"/home/dorian/.platformio/packages/framework-espidf/components/console",
"/home/dorian/.platformio/packages/framework-espidf/components/http_parser",
"/home/dorian/.platformio/packages/framework-espidf/components/esp-tls",
"/home/dorian/.platformio/packages/framework-espidf/components/esp-tls/esp-tls-crypto",
"/home/dorian/.platformio/packages/framework-espidf/components/esp_adc/include",
"/home/dorian/.platformio/packages/framework-espidf/components/esp_adc/interface",
"/home/dorian/.platformio/packages/framework-espidf/components/esp_adc/esp32/include",
"/home/dorian/.platformio/packages/framework-espidf/components/esp_adc/deprecated/include",
"/home/dorian/.platformio/packages/framework-espidf/components/esp_eth/include",
"/home/dorian/.platformio/packages/framework-espidf/components/esp_gdbstub/include",
"/home/dorian/.platformio/packages/framework-espidf/components/esp_hid/include",
"/home/dorian/.platformio/packages/framework-espidf/components/tcp_transport/include",
"/home/dorian/.platformio/packages/framework-espidf/components/esp_http_client/include",
"/home/dorian/.platformio/packages/framework-espidf/components/esp_http_server/include",
"/home/dorian/.platformio/packages/framework-espidf/components/esp_https_ota/include",
"/home/dorian/.platformio/packages/framework-espidf/components/esp_psram/include",
"/home/dorian/.platformio/packages/framework-espidf/components/esp_lcd/include",
"/home/dorian/.platformio/packages/framework-espidf/components/esp_lcd/interface",
"/home/dorian/.platformio/packages/framework-espidf/components/protobuf-c/protobuf-c",
"/home/dorian/.platformio/packages/framework-espidf/components/protocomm/include/common",
"/home/dorian/.platformio/packages/framework-espidf/components/protocomm/include/security",
"/home/dorian/.platformio/packages/framework-espidf/components/protocomm/include/transports",
"/home/dorian/.platformio/packages/framework-espidf/components/esp_local_ctrl/include",
"/home/dorian/.platformio/packages/framework-espidf/components/espcoredump/include",
"/home/dorian/.platformio/packages/framework-espidf/components/espcoredump/include/port/xtensa",
"/home/dorian/.platformio/packages/framework-espidf/components/wear_levelling/include",
"/home/dorian/.platformio/packages/framework-espidf/components/sdmmc/include",
"/home/dorian/.platformio/packages/framework-espidf/components/fatfs/diskio",
"/home/dorian/.platformio/packages/framework-espidf/components/fatfs/vfs",
"/home/dorian/.platformio/packages/framework-espidf/components/fatfs/src",
"/home/dorian/.platformio/packages/framework-espidf/components/idf_test/include",
"/home/dorian/.platformio/packages/framework-espidf/components/idf_test/include/esp32",
"/home/dorian/.platformio/packages/framework-espidf/components/ieee802154/include",
"/home/dorian/.platformio/packages/framework-espidf/components/json/cJSON",
"/home/dorian/.platformio/packages/framework-espidf/components/mqtt/esp-mqtt/include",
"/home/dorian/.platformio/packages/framework-espidf/components/perfmon/include",
"/home/dorian/.platformio/packages/framework-espidf/components/spiffs/include",
"/home/dorian/.platformio/packages/framework-espidf/components/wifi_provisioning/include",
""
]
},
"defines": [
"configENABLE_FREERTOS_DEBUG_OCDAWARE=1",
"_POSIX_READER_WRITER_LOCKS",
"_GNU_SOURCE",
"SOC_MMU_PAGE_SIZE=CONFIG_MMU_PAGE_SIZE",
"IDF_VER=\"5.1.1\"",
"ESP_PLATFORM",
"PLATFORMIO=60111",
"ARDUINO_ESP32_DEV",
""
],
"cStandard": "gnu17",
"cppStandard": "gnu++23",
"compilerPath": "/home/dorian/.platformio/packages/toolchain-xtensa-esp32/bin/xtensa-esp32-elf-gcc",
"compilerArgs": [
"-mlongcalls",
""
]
}
],
"version": 4
}

10
.vscode/extensions.json vendored Normal file
View File

@ -0,0 +1,10 @@
{
// See http://go.microsoft.com/fwlink/?LinkId=827846
// for the documentation about the extensions.json format
"recommendations": [
"platformio.platformio-ide"
],
"unwantedRecommendations": [
"ms-vscode.cpptools-extension-pack"
]
}

44
.vscode/launch.json vendored Normal file
View File

@ -0,0 +1,44 @@
// AUTOMATICALLY GENERATED FILE. PLEASE DO NOT MODIFY IT MANUALLY
//
// PIO Unified Debugger
//
// Documentation: https://docs.platformio.org/page/plus/debugging.html
// Configuration: https://docs.platformio.org/page/projectconf/section_env_debug.html
{
"version": "0.2.0",
"configurations": [
{
"type": "platformio-debug",
"request": "launch",
"name": "PIO Debug",
"executable": "/home/dorian/Documents/git/ScStw/bluetooth-buzzer/.pio/build/esp32dev/firmware.elf",
"projectEnvName": "esp32dev",
"toolchainBinDir": "/home/dorian/.platformio/packages/toolchain-xtensa-esp32/bin",
"internalConsoleOptions": "openOnSessionStart",
"preLaunchTask": {
"type": "PlatformIO",
"task": "Pre-Debug"
}
},
{
"type": "platformio-debug",
"request": "launch",
"name": "PIO Debug (skip Pre-Debug)",
"executable": "/home/dorian/Documents/git/ScStw/bluetooth-buzzer/.pio/build/esp32dev/firmware.elf",
"projectEnvName": "esp32dev",
"toolchainBinDir": "/home/dorian/.platformio/packages/toolchain-xtensa-esp32/bin",
"internalConsoleOptions": "openOnSessionStart"
},
{
"type": "platformio-debug",
"request": "launch",
"name": "PIO Debug (without uploading)",
"executable": "/home/dorian/Documents/git/ScStw/bluetooth-buzzer/.pio/build/esp32dev/firmware.elf",
"projectEnvName": "esp32dev",
"toolchainBinDir": "/home/dorian/.platformio/packages/toolchain-xtensa-esp32/bin",
"internalConsoleOptions": "openOnSessionStart",
"loadMode": "manual"
}
]
}

5
firmware/.gitignore vendored Normal file
View File

@ -0,0 +1,5 @@
.pio
.vscode/.browse.c_cpp.db*
.vscode/c_cpp_properties.json
.vscode/launch.json
.vscode/ipch

3
firmware/.gitmodules vendored Normal file
View File

@ -0,0 +1,3 @@
[submodule "lib/esp-nimble-cpp"]
path = lib/esp-nimble-cpp
url = https://itsblue.dev/ScStw/esp-nimble-cpp.git

3
firmware/CMakeLists.txt Normal file
View File

@ -0,0 +1,3 @@
cmake_minimum_required(VERSION 3.16.0)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(bluetooth-buzzer)

39
firmware/include/README Normal file
View File

@ -0,0 +1,39 @@
This directory is intended for project header files.
A header file is a file containing C declarations and macro definitions
to be shared between several project source files. You request the use of a
header file in your project source file (C, C++, etc) located in `src` folder
by including it, with the C preprocessing directive `#include'.
```src/main.c
#include "header.h"
int main (void)
{
...
}
```
Including a header file produces the same results as copying the header file
into each source file that needs it. Such copying would be time-consuming
and error-prone. With a header file, the related declarations appear
in only one place. If they need to be changed, they can be changed in one
place, and programs that include the header file will automatically use the
new version when next recompiled. The header file eliminates the labor of
finding and changing all the copies as well as the risk that a failure to
find one copy will result in inconsistencies within a program.
In C, the usual convention is to give header files names that end with `.h'.
It is most portable to use only letters, digits, dashes, and underscores in
header file names, and at most one dot.
Read more about using header files in official GCC documentation:
* Include Syntax
* Include Operation
* Once-Only Headers
* Computed Includes
https://gcc.gnu.org/onlinedocs/cpp/Header-Files.html

46
firmware/lib/README Normal file
View File

@ -0,0 +1,46 @@
This directory is intended for project specific (private) libraries.
PlatformIO will compile them to static libraries and link into executable file.
The source code of each library should be placed in a an own separate directory
("lib/your_library_name/[here are source files]").
For example, see a structure of the following two libraries `Foo` and `Bar`:
|--lib
| |
| |--Bar
| | |--docs
| | |--examples
| | |--src
| | |- Bar.c
| | |- Bar.h
| | |- library.json (optional, custom build options, etc) https://docs.platformio.org/page/librarymanager/config.html
| |
| |--Foo
| | |- Foo.c
| | |- Foo.h
| |
| |- README --> THIS FILE
|
|- platformio.ini
|--src
|- main.c
and a contents of `src/main.c`:
```
#include <Foo.h>
#include <Bar.h>
int main (void)
{
...
}
```
PlatformIO Library Dependency Finder will find automatically dependent
libraries scanning project source files.
More information about PlatformIO Library Dependency Finder
- https://docs.platformio.org/page/librarymanager/ldf.html

@ -0,0 +1 @@
Subproject commit 22fb1ab8017ebe152e48e30759ab2f8bf27608db

16
firmware/platformio.ini Normal file
View File

@ -0,0 +1,16 @@
; PlatformIO Project Configuration File
;
; Build options: build flags, source filter
; Upload options: custom upload port, speed and extra flags
; Library options: dependencies, extra library storages
; Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html
[env:esp32dev]
platform = espressif32
board = esp32dev
framework = espidf
monitor_speed = 115200
monitor_filters = esp32_exception_decoder

1993
firmware/sdkconfig.esp32dev Normal file

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,6 @@
# This file was automatically generated for projects
# without default 'CMakeLists.txt' file.
FILE(GLOB_RECURSE app_sources ${CMAKE_SOURCE_DIR}/src/*.*)
idf_component_register(SRCS ${app_sources})

129
firmware/src/main.cpp Normal file
View File

@ -0,0 +1,129 @@
#include "NimBLEDevice.h"
#include "NimBLEServer.h"
#include "NimBLEUtils.h"
#include "NimBLE2904.h"
#include "NimBLECharacteristic.h"
#include "NimBLEAdvertising.h"
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "freertos/queue.h"
#include "esp_log.h"
#include "esp_timer.h"
#include "driver/gpio.h"
#define TAG "main"
#define TRIGGER_PIN GPIO_NUM_23
#define BLE_SERVICE_UUID "deea3136-d728-4f23-823a-1042909dd100"
#define BLE_CURRENTTIME_CHARACTERISTIC_UUID "deea3136-d728-4f23-823a-1042909dd101"
#define BLE_LASTTRIGGERTIME_CHARACTERISTIC_UUID "deea3136-d728-4f23-823a-1042909dd102"
extern "C"
{
void app_main();
}
NimBLEServer *bleServer;
NimBLEService *bleService;
NimBLECharacteristic *bleCurrentTimeCharacteristic;
NimBLECharacteristic *bleLastTriggerTimeCharacteristic;
QueueHandle_t triggerQueue;
class LocalServerCallbacks : public NimBLEServerCallbacks
{
void onConnect(NimBLEServer *pServer, NimBLEConnInfo &connInfo) override
{
// Advertising is automatically stopped after a new connection
// -> restart to make up to nine concurrent connections possible
if (pServer->getConnectedCount() < 9)
{
NimBLEDevice::startAdvertising();
}
ESP_LOGI(TAG, "Device connected!");
};
void onDisconnect(NimBLEServer *pServer, NimBLEConnInfo &connInfo, int reason) override
{
// This is only required for the case that advertising was
// not restarted due to nine connected devices
NimBLEDevice::startAdvertising();
ESP_LOGI(TAG, "Device disconnected!");
}
};
class LocalCharacteristicCallbacks : public NimBLECharacteristicCallbacks
{
void onWrite(NimBLECharacteristic *pCharacteristic, NimBLEConnInfo &connInfo) override
{
bleCurrentTimeCharacteristic->setValue(esp_timer_get_time());
bleCurrentTimeCharacteristic->notify();
ESP_LOGI(TAG, "Characteristic written!");
}
};
void handleTrigger(void *)
{
uint64_t currentTime = esp_timer_get_time();
BaseType_t xHigherPriorityTaskWoken = pdFALSE;
xQueueSendFromISR(triggerQueue, &currentTime, &xHigherPriorityTaskWoken);
if (xHigherPriorityTaskWoken)
{
portYIELD_FROM_ISR();
}
}
void app_main()
{
ESP_LOGI("main", "Starting BLE work!");
NimBLEDevice::init("Speed buzzer");
bleServer = NimBLEDevice::createServer();
bleServer->setCallbacks(new LocalServerCallbacks());
bleService = bleServer->createService(BLE_SERVICE_UUID);
bleCurrentTimeCharacteristic = bleService->createCharacteristic(
BLE_CURRENTTIME_CHARACTERISTIC_UUID,
NIMBLE_PROPERTY::READ |
NIMBLE_PROPERTY::WRITE |
NIMBLE_PROPERTY::NOTIFY);
bleCurrentTimeCharacteristic->addDescriptor(new NimBLE2904());
bleCurrentTimeCharacteristic->setCallbacks(new LocalCharacteristicCallbacks());
bleLastTriggerTimeCharacteristic = bleService->createCharacteristic(
BLE_LASTTRIGGERTIME_CHARACTERISTIC_UUID,
NIMBLE_PROPERTY::READ |
NIMBLE_PROPERTY::NOTIFY);
bleLastTriggerTimeCharacteristic->addDescriptor(new NimBLE2904());
bleService->start();
NimBLEAdvertising *pAdvertising = NimBLEDevice::getAdvertising();
pAdvertising->addServiceUUID(BLE_SERVICE_UUID);
pAdvertising->setScanResponse(true);
pAdvertising->setMinPreferred(0x00);
NimBLEDevice::startAdvertising();
ESP_LOGI("main", "Advertising started!");
triggerQueue = xQueueCreate(10, sizeof(uint64_t));
gpio_install_isr_service(0);
gpio_set_pull_mode(TRIGGER_PIN, GPIO_PULLUP_ONLY);
gpio_set_direction(TRIGGER_PIN, GPIO_MODE_INPUT);
gpio_set_intr_type(TRIGGER_PIN, GPIO_INTR_NEGEDGE);
gpio_isr_handler_add(TRIGGER_PIN, handleTrigger, NULL);
for (;;)
{
uint64_t currentTime;
if (xQueueReceive(triggerQueue, &currentTime, portMAX_DELAY) == pdTRUE)
{
bleLastTriggerTimeCharacteristic->setValue(currentTime);
bleLastTriggerTimeCharacteristic->notify();
ESP_LOGI(TAG, "Characteristic written!");
}
}
}

11
firmware/test/README Normal file
View File

@ -0,0 +1,11 @@
This directory is intended for PlatformIO Test Runner and project tests.
Unit Testing is a software testing method by which individual units of
source code, sets of one or more MCU program modules together with associated
control data, usage procedures, and operating procedures, are tested to
determine whether they are fit for use. Unit testing finds problems early
in the development cycle.
More information about PlatformIO Unit Testing:
- https://docs.platformio.org/en/latest/advanced/unit-testing/index.html