The code looks fine to me - I just ran it and I see the 0x181A service using nRF connect. It's possible that significantly older firmwares didn't have that code implemented and ignored the advertise field.
However it may also be because I believe Espruino tends to put advertised services in the scan response packet - so if you're just looking at ADV_IND you may not see the service?
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Hi - is your firmware up to date?
The code looks fine to me - I just ran it and I see the 0x181A service using nRF connect. It's possible that significantly older firmwares didn't have that code implemented and ignored the
advertise
field.However it may also be because I believe Espruino tends to put advertised services in the scan response packet - so if you're just looking at ADV_IND you may not see the service?