0x180f
Fourth line down on https://www.bluetooth.com/specifications/gatt/services/
want to be able to scan and advertise my device at the same time .
That's fine, it happens automatically. This post from a few days ago is just what you need: http://forum.espruino.com/conversations/346289/#comment15233728
I have try to use this function but I;m steel able to connect to
Are you sure it's actually executing? That should definitely stop connecting. You could also see http://www.espruino.com/BLE+Security
@Gordon started
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.
Fourth line down on https://www.bluetooth.com/specifications/gatt/services/
That's fine, it happens automatically. This post from a few days ago is just what you need: http://forum.espruino.com/conversations/346289/#comment15233728
Are you sure it's actually executing? That should definitely stop connecting. You could also see http://www.espruino.com/BLE+Security