I'm using a nRF51 beacon as a receiver that produces a pulse when it receives a byte from the transmitter. The code is based on the ble_app_uart example. And I set the connection interval to minimum to minimise the latency.
#define MIN_CONN_INTERVAL MSEC_TO_UNITS(7.5, UNIT_1_25_MS) /**< Minimum acceptable connection interval (20 ms), Connection interval uses 1.25 ms units. */ #define MAX_CONN_INTERVAL MSEC_TO_UNITS(7.5, UNIT_1_25_MS) /**< Maximum
The beacon is only used every few days and for 1 hour each time. I want to switch off the beacon without pulling the coin battery out or modifying the circuit.
Is it feasible to connect one of the GPIOs to a SPDT switch as a "power switch"? For example, when the pin transitions from high to low, the beacon is powered down (system off) and when the pin transitions from low to high, the beacon is powered up and reset.
Is there any example code to do this with S110 soft device? I have only used an example without the soft device in https://github.com/NordicSemiconducto....