I'm sorry that I have confused you. The first case you show does NOT work. I removed the 2nd call: I added for debugging when the simpler case did not work, but is confusing the issue.
Anytime I turn off connectable (through either set of code) it stops advertising.
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.
Yes, I get that. However since this isn't an official board it'd be good if you could help me by narrowing it down to the bare minimum.
So we know this does it:
And this doesn't (on its own):
What lines can be removed such that it still breaks?