ESP32 send raw beacon data

I need to send a custom payload via BLE advertising. I could not find a suitable method in the ESP32 bluetooth libraries, and the closest discussion I found is here. There's also an example of doing so using the espressif framework here.

Is there a way to send raw bytes using any Arduino library? I have ESP32, Arduino Nano IOT and NodeMCU which I can use.

Thanks

I'm looking for BLE resources, not ESP-NOW. Currently I am using Kolban's library.

Apologies, I was confused by the request for 'any library'