noble.stateis defined: https://github.com/noble/noble/issues/869#issuecomment-474327454
Hi! I have tried to make a simple advertiser with Bleno.startAdvertisingIBeacon, but I cannot get state to change from undefined to "poweredon". Why can this be? Can anyone explain to me what is supposed to trigger a StateChange setting the value to "poweredOn"?
My source code: https://pastebin.com/se103tJp
I want to add that I have remembered to do:
sudo service bluetooth stop
sudo hciconfig hci0 up
I am using a Rasberry Pi 4b with integrated bluetooth (no dongle)