Hi all,
I have a project with a custom service (custs1) and the Dialog SPS service. My problem is that after sending the SPS_SERVER_CREATE_DB_REQ message to TASK_SPS_SERVER, the custs1_create_db_req_handler is called mistakenly (instead of sps_server_create_db_req_handler).
Any ideas what could be going wrong here? I'm happy to provide more info, if needed. I'm using SDK 5.0.4.
Thanks,
mabraun
Device:
Hi mabraun,
检查消息和message handlers in your project, in the sps_server_task.c you can find the sps_server_idle array that holds the sps_server_enable_req_handler and check what is the message that corresponds to that handler. Something must have slipped in your implementation.
Thanks MT_dialog
Hi MT_dialog,
thanks for the advice. I was able to track down the problem: Due to some include problems, the BLE_SPS_SERVER #define was set to 0, thus the handler from sps_server_task.c was never even compiled. Just indicating, in case someone else runs into a similar problem.
Topic can be closed.
Regards,
mabraun