Hi, I am learning how to merge two files together to be able to transmit temperature data via UART. These were the steps I have undertaken to do so:
1. Copy pasted the function found in main.c in the peripheral/temperature under the int main(void) under //Enter main loop under for(;;) of the ble_app_uart file.
Outcome: It was able to compile but unable to advertise. Followed up by going to the sdk_config.h file of the peripheral/temperature and comparing with the sdk_config.h of ble_app_uart.
2. Copy pasted over some functions from the sdk_config.h in peripheral/temperature over to ble_app_uart by adding in the following
#ifndef NRF_LOG_BACKEND_UART_ENABLED 1
#NRF_LOG_BACKEND_UART_TX_PIN 6
#NRF_LOG_BACKEND_UART_BAUDRATE
#NRF_LOG_BACKEND_UART_TEMP_BUFFER_SIZE 64
[found in the peripheral/temperature sdk_config.h]
3. Another difference I observed was that the NRF_LOG_BACKEND_RTT_ENABLED is 0 for peripheral/temperature and it is 1 for ble_app_uart. The NRF_SDH_BLE_LOG_ENABLED is 0 for peripheral/temperature but 1 for ble_app_uart.
I am very stuck and I am not sure how to progress from here on.