I'm trying to oper 2 servers as the SDD demo example.
The 1st server is opened successfully and the second is failed when calling the function SPP_Register_SDP_Record.
It returns -1 error code = BTPS_ERROR_INVALID_PARAMETER.
ret_val = SPP_Register_SDP_Record(BluetoothStackID, //The ID received when stack is opened and used many times before.
_s_port[port].ServerPortID, //return value of SPP_Open_Server_Port
NULL,
(char *)service_name[port], //a pointer to a string.
&_s_port[port].SPPServerSDPHandle);//pointer to DWord_t