/** * This method sends a CoAP ACK empty message which is used in Separate Response for confirmable requests. * * @param[in] aRequest A reference to the CoAP Message that was used in CoAP request. * @param[in] aMessageInfo The message info corresponding to the CoAP request. * * @retval OT_ERROR_NONE Successfully enqueued the CoAP response message. * @retval OT_ERROR_NO_BUFS Insufficient buffers available to send the CoAP response. * @retval OT_ERROR_INVALID_ARGS The @p aRequest header is not of confirmable type. * */ otError SendAck(const Message &aRequest, const Ip6::MessageInfo &aMessageInfo) { return SendEmptyMessage(OT_COAP_TYPE_ACKNOWLEDGMENT, aRequest, aMessageInfo); };
//@SuppressWarnings("unused") //@CalledByNative void SystemMessageHandler::ScheduleWork() { SendEmptyMessage(SCHEDULED_WORK); }
/** * This method sends a CoAP reset message. * * @param[in] aRequest A reference to the CoAP Message that was used in CoAP request. * @param[in] aMessageInfo The message info corresponding to the CoAP request. * * @retval OT_ERROR_NONE Successfully enqueued the CoAP response message. * @retval OT_ERROR_NO_BUFS Insufficient buffers available to send the CoAP response. * @retval OT_ERROR_INVALID_ARGS The @p aRequest is not of confirmable type. * */ otError SendReset(Message &aRequest, const Ip6::MessageInfo &aMessageInfo) { return SendEmptyMessage(OT_COAP_TYPE_RESET, aRequest, aMessageInfo); };
//@SuppressWarnings("unused") //@CalledByNative void SystemMessageHandler::ScheduleWork() { Boolean res; SendEmptyMessage(SCHEDULED_WORK, &res); }