bool EventHandleBleHandleEventstdstring& str_id JsonValue json_param LOGDBleHandleEvent iss str_idc_str; = json_paramdata; 发现数据有发过来马上搞个协议层 LDObjectSendMSGPOINT_TO_POINT_BLE_DATA OBJECT
bool EventHandle::BleHandleEvent(std::string& str_id, Json::Value json_param) { LOGD("BleHandleEvent is:%s", str_id.c_str());
Json::Value data = json_param["data"];
if (!data.isNull()) {
// 对data进行判断和处理
// ...
}
LDObject::SendMSG(POINT_TO_POINT_BLE_DATA, OBJECT_ID_FT_LINKIT, json_param);
return true;
}
原文地址: https://www.cveoy.top/t/topic/ihcJ 著作权归作者所有。请勿转载和采集!