Hello,
in our project we have a nRF52840DK as central and a BMD-300 (contains nRF52832 chip) as peripheral. The software on the nRF52840DK is based on the ble_app_uart_c example. The software on the BMD-300 is based on the ble_app_uart example. The BMD-300 module sends data to the nRF52840DK via NUS. The nRF52840DK writes the received data by NUS into the COM-Port. The data from the COM-Port gets proccessed on a pc. This all works fine. We are using SDKv17.
Now we want to add a GPIO(digital input) to the ble_app_uart_c example on the nRF52840DK. If this digital input is high, a short string should be written into the COM-Port in addition to the data which is received by NUS and written into the COM-Port anyways.
We hope that you help us, by answering our questions:
1. How can we add a GPIO as digital input to the ble_app_uart_c example?
2. How can we read out this digital input?
3. How can we write a string into the COM-Port as reaction to a "high" on the digital input?
Thank you very much in advance.