spp重启的问题
(我连接spp情况, 连接了一次spp后,断开,再次连接spp, 然后发现没开启spp服务)请问spp怎么重启服务,或者怎么才能再次连接spp而不受影响 楼主,这个问题解决了吗?怎么解决的,我也遇到了。 现在也在整spp服务,老是一跑就死了! 好好学习,天天向上! spp怎么开启在8670上,请大家不吝赐教啊 gaia吗?还是直接用的spp? case SPP_DISCONNECT_IND:handleSppDisconnectInd((SPP_DISCONNECT_IND_T *)message);
break;
case SPP_DISCONNECT_CFM:
handleSppDisconnectCfm((SPP_DISCONNECT_CFM_T *)message);
break;
static void handleSppDisconnectInd(SPP_DISCONNECT_IND_T *ind)
{
MAIN_DEBUG(("SPP_DISCONNECT_IND = %d\n",ind->status));
SppDisconnectResponse(ind->spp);
}
static void handleSppDisconnectCfm(SPP_DISCONNECT_CFM_T *cfm)
{
MAIN_DEBUG(("SPP_DISCONNECT_CFM = %d\n",cfm->status));
spp_sink =NULL;
}
处理断开连接的消息应该就没有问题了 顶起
mupro 发表于 2014-12-26 19:36
case SPP_DISCONNECT_IND:
handleSppDisconnectInd((SPP_DISCONNECT_IND_T *)message ...
谢谢你的代码,给了我一个提示,让我解决了一个困扰了好几天的问题:):handshake
页:
[1]