how to send the data to ble_app_uart , i used this line
ret = ble_nus_data_send(&m_nus,"hwllo",25,m_conn_handle);
but i am not receiving any data in ble_app
how to send the data to ble_app_uart , i used this line
ret = ble_nus_data_send(&m_nus,"hwllo",25,m_conn_handle);
but i am not receiving any data in ble_app
There are both Central & Peripheral examples for the Nordic UART Service (NUS) in the SDK.
Start with those ...
Have you tested your peripheral code with Nordic's app ?
Ok one thing I see is:
uint32_t ble_nus_data_send(ble_nus_t * p_nus, uint8_t * p_data, uint16_t * p_length, uint16_t conn_handle)
So you need to pass address of the data to be exact.
But before that have you used the basic ble_app_uart example in its raw form?
No , i couldn't able to receive the data from usb dongle , and i am not receiving any data too in termite from app
even i installed cdc driver too .
yes i used , but i am new to nrf52840 usb dongle kit , i am not at all receiving the data from usb dongle . i merged the twi+adc example too
Was the function working fine in the default example?