I am working on the example code of AN1024.
I follow the steps to add a service and characteristic in ncp-empty-target and modify the host example by the guide.
Here is the problem:
It worked good on the BGTool. When I wrote the characteristic, I can saw the output.
But when I used the host_example, it didn't work. The output "my_data" didn't show.
There wasn't show the output like 8.4 Testing in AN1042
The problem looks like it's fail to go "case gecko_evt_gatt_server_attribute_value_id" in app.c
How can I solve the problem, is there any tips? or what I missed to research.
*My OS is linux and my chip is EFR32BG1P232F256GM48
Could you attach your host project to take a look?
Meanwhile here is my host project attached. It works for me.
Thanks for your reply.
My host example is same as yours. Unfortunately, it still not working on yours or mine.
I changes different phone(ios,android) and different OS(window,linux), but didn't work.
I am not sure if the problem is in the ncp_target...
After I checked BGAPI from BGTool, I changed switch case "gecko_evt_gatt_server_attribute_value_id" to "gecko_evt_gatt_server_user_write_request_id" in app.c.
Now it can work, but only can print my_data.
If I write "aa", it shows my_data = 0xaa.
If I write "aabb", nothing shows in the screen.