How to send advertisment with android 10 and 8

I tried what was in a old post


On android 10 it didn't produce any result on the receiver. Nothing was received.
After many tries the phone started to send like crazy random Mac (but no advertising message) even with Bluetooth turned off, and to stop it i had to restart the phone.

On android 8 i can see on the receiver the name of the device, the MAC (fixed, not random), the RSSI but the field of the advertising message is empty.
Any idea about what i'm doing wrong?

is there any aia example?