Hi ,
I am trying to advertise HID Keyboard Example forever untill the device is powered off
Please let me know how to do this and also how to power optimise.
Kind Regards, Ven
Hi ,
I am trying to advertise HID Keyboard Example forever untill the device is powered off
Please let me know how to do this and also how to power optimise.
Kind Regards, Ven
Thank you Petter for detailed explanation.This is very much helpful. One point I dont understand is if the chip goes to System OFF state, how can I advertise again through keyboard events. Sorry if I am missing something here.
You can wake it and start advertising on a pin change. You use nrf_gpio_cfg_sense_input(). See the BLE_GAP_EVT_TIMEOUT event in on_ble_evt():
nrf_gpio_cfg_sense_input(KEY_PRESS_BUTTON_PIN_NO,
BUTTON_PULL,
NRF_GPIO_PIN_SENSE_LOW);
nrf_gpio_cfg_sense_input(BOND_DELETE_ALL_BUTTON_ID,
BUTTON_PULL,
NRF_GPIO_PIN_SENSE_LOW);
Thank You Petter.