Disable advertise() with end()?

Hi everybody :slight_smile:
i am using my arduino 101 for a campervan monitoring project. My arduino has control lights, check batteries level, water tank level, tap water and fridge power supply.

The idea is to control every this with button, but also with an android app via BLE. I would like to turn on and off BLE for the main reason: power consumption.

here is my problem: when I send do this:

    BLE.end();
    Serial.println("[BLE] Bluetooth device Disable");

the BLE does not seem to be disabled. I can see it with my android app ( I use nRF connection).
Is any way to stop the advertisement of my Arduino?

Thank you in advance :slight_smile:

samv:
Hi everybody :slight_smile:
i am using my arduino 101 for a campervan monitoring project. My arduino has control lights, check batteries level, water tank level, tap water and fridge power supply.

The idea is to control every this with button, but also with an android app via BLE. I would like to turn on and off BLE for the main reason: power consumption.

here is my problem: when I send do this:

    BLE.end();

Serial.println("[BLE] Bluetooth device Disable");




the BLE does not seem to be disabled. I can see it with my android app ( I use nRF connection). 
Is any way to stop the advertisement of my Arduino?

Thank you in advance :)

What do you mean by "send"?
How are you sending that?

Hello thanks for the question and my late answer...
the " send" is not the adequate word. I wanted to say: " when the arduino read this lines".

do you have the same problem?

thank you