|
发表于 2016-9-27 09:30:45
只看该作者
沙发
- /*
- ****************************************************************************************
- * @brief Send a notification containing raw data - at connection. *//**
- *
- * @param[in] conhdl Connection handle
- * @param[in] index Index of Characteristic to be sent
- * @param[in] length Length of data to be sent
- * @param[in] data Pointer to data to be sent
- *
- * @response QPPS_DATA_SEND_CFM
- * @description
- * This function is used by the application to send a raw data.
- *
- ****************************************************************************************
- */
- void app_qpps_data_send(uint16_t conhdl, uint8_t index, uint8_t length, uint8_t *data)
- {
- struct qpps_data_send_req * msg = KE_MSG_ALLOC_DYN(QPPS_DATA_SEND_REQ, TASK_QPPS, TASK_APP,
- qpps_data_send_req, length);
- msg->conhdl = conhdl;
- msg->index = index;
- msg->length = length;
- memcpy(msg->data, data, length);
- ke_msg_send(msg);
- }
复制代码
以上方法可以实现 |
|