I'm having trouble transmitting data in scanning mode. I'm using the NRF51422.
I am receiving data, but when I try to transmit data, nothing actually sends.
Here is the code I'm using:
/* Configure scanning channel */
sd_ant_network_address_set(ANTPLUS_NETWORK_NUMBER, (uint8_t*)m_network_key);
sd_ant_channel_assign(0, CHANNEL_TYPE_SLAVE, 0, 0);
sd_ant_channel_id_set(0, 0, DEVICE_TYPE, 0);
sd_ant_channel_radio_freq_set(0, FREQUENCY);
sd_ant_lib_config_set(ANT_LIB_CONFIG_MESG_OUT_INC_DEVICE_ID);
sd_ant_rx_scan_mode_start(0);
/* Configure transmitting channel */
sd_ant_channel_assign(1, CHANNEL_TYPE_SLAVE, 0, 0);
sd_ant_channel_id_set(1, recieved_channel_id, DEVICE_TYPE, 0);
/* Send data */
sd_ant_acknowledge_message_tx(1, 8, broadcast_data);