Hi all,
We studied dmm_wsnnode_remote_display example and noticed that it provides only advertising (broadcasting) functionality. Is it possible to add scanning ability over BLE to this particular example? Is there such a DMM example?
Regards
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi all,
We studied dmm_wsnnode_remote_display example and noticed that it provides only advertising (broadcasting) functionality. Is it possible to add scanning ability over BLE to this particular example? Is there such a DMM example?
Regards
Hi Kristopher,
Thank you for your answer.
These days we're trying to implement scanning ability to dmm_wsnnode_remote_display example by simply adding scan functions and variables to it from simple_central example, but it seems that the project is not able to "see" functions starting with GapScan_(function_name) although icall_ble_api.h is included to the remote_display.c file. Here's an example of the error we've got:
unresolved symbol GapScan_enable, first referenced in <whole-program>
We've already checked linked resources, includes, libraries etc. and everything seems fine. Do you have any ideas?
Regards
My apologies for the delay.
You will need to change the BLE Host Build Configuration of the stack_library project.
in dmm_wsnnode_remote_display_stack_library project under the TOOLS folder there is a file build_config.opts. In this file there is a section for changing the Host Build Configuration. Modifying this HOST_CONFIG define will link the GapScan_enable function as well as other Central device functions.
Here you can see I've commented out the Peripheral_cfg choice and instead uncommented the peripheral_cfg + central_cfg option.
/* BLE Host Build Configurations */ /* -DHOST_CONFIG=PERIPHERAL_CFG */ /* -DHOST_CONFIG=CENTRAL_CFG */ /* -DHOST_CONFIG=BROADCASTER_CFG */ /* -DHOST_CONFIG=OBSERVER_CFG */ /* -DHOST_CONFIG=PERIPHERAL_CFG+OBSERVER_CFG */ /* -DHOST_CONFIG=CENTRAL_CFG+BROADCASTER_CFG */ -DHOST_CONFIG=PERIPHERAL_CFG+CENTRAL_CFG
After this make sure to do a rebuild of the stack_library project and app project to make sure the change gets applied. Your app project should be able to resolve the function now!
Best,
Kris
Hi Kristopher,
Thank you for the answer. We're able to build the project and we can move on now.
Best regards