Go Down

Topic: Disable advertise() with end()? (Read 2482 times) previous topic - next topic

samv

Hi everybody :)
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:
Code: [Select]
    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 :)

artisticforge

Hi everybody :)
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:
Code: [Select]
    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?


Go Up