SPS & custs1: Wrong handler called

3 posts / 0 new
Last post
mabraun
Offline
Last seen:3 years 3 months ago
Joined:2015-11-16 15:57
SPS & custs1: Wrong handler called

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

Keywords:
MT_dialog
Offline
Last seen:3 days 30 min ago
Staff
Joined:2015-06-08 11:34
Hi mabraun,

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

mabraun
Offline
Last seen:3 years 3 months ago
Joined:2015-11-16 15:57
Hi 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