BleHandleEvent Function: Processing BLE Data with JSON Parameters
bool EventHandle::BleHandleEvent(std::string& str_id, Json::Value json_param) {\n LOGD("BleHandleEvent is:%s", str_id.c_str());\n \n Json::Value data = json_param["data"];\n \n if (!data.isNull()) {\n // 对data进行判断和处理\n // ...\n }\n \n LDObject::SendMSG(POINT_TO_POINT_BLE_DATA, OBJECT_ID_FT_LINKIT, json_param);\n \n return true;\n}
原文地址: https://www.cveoy.top/t/topic/pZsM 著作权归作者所有。请勿转载和采集!