Minimal esp-idf BLE advertise example for ESP32.
This program periodically advertises short data to central devices.
You will find the last byte of the packet is updated every 2 seconds.
git clone https://github.com/UsukeO235/esp32_ble_simple_advertise.git
cd esp32_ble_simple_advertise
. $HOME/esp/esp-idf/export.sh
idf.py set-target esp32
idf.py build
idf.py -p /dev/ttyUSB0 flash
/dev/ttyUSB0 is a port to where you connect your ESP32 board.
idf.py monitor