Tools in use, etc:
- nRF52840-PDK
- nRF5_SDK_for_Thread_v0.11.0_84a130f.zip
- Thread Border Router ... RaspPi_Thread_Border_Router_Demo_v0.11.0-1.alpha.zip
- Thread NCP Example
- Raspberry Pi connect through an Ethernet cable to my switch that provides IPv4 connectivity with the DHCP service.
I've made some change in cloud_coap_client sample to post temperature data to my intranet coap server. It works fine (I can get posted values within the coap server). For next step, I'm trying:
- continuous BLE scan to find target beacon,
- when the target beacon is found, post beacon-related data (rssi, etc) to my intranet coap server.
I've called thread_coap_utils_cloud_data_update(...) function that is part of the thread_coap_utils.c for posting the beacon-related data (For testing, I'm using hard-coded temperature data now), but it isn't operated as expected.
I put this code:
just before calling location of the thread_coap_utils_cloud_data_update(...) function. This is output of modified cloud_coap_client sample, that works fine:
and, this is similar output of new application which isn't operated as expected (modified version of ble_app_blinky_c):
As I mentioned, I'm using my intranet coap server to receive posted data, so that I think *p_cloud_hostname value is meaningless. I've set coap server IP-Address in my code directly (hard-coded for testing).
What am I missing? Can anyone help me?
Thank you.
EDIT: I've uploaded ble_app_scan_c_th.zip .