Now I just use the sdk,I select the project of ble_app_barebone,and it's work well.but when I put my own sensor data to the struct of mnf_specific_data_ad_structure.I can't scan it.I don't know how to debug it,can you help me ? Thanks very much!
Device:
Hi RandyYu,
I trust that you are using a generic BLE android application for testing this. Most probably your device doesn't advertise (you can check this by using the power profiler in case you have a pro kit and confirm that). A common reason for a not advertising device is that the advertising data are incorrect (most probably the bytes that define the length of each portion of your advertising string are wrong - that stack performs a validity check before advertising starts). You can set your code optimization to O1 or O2 (if there isn't much code added in the project) and run you project again, place a breakpoint to the app_add_ad_struct and check your advertising string in the cmd->info.host.adv_data struct if it is proper.
Thanks MT_dialog