主题中讨论的其他器件:CC1352P7
尊敬的 TI:
我正在处理'ns_CoAP_NODE_src_LP_CC1352P7_1'示例。 我可以使用 GET 请求将数据从 RN 发送到 BR、并将其放入响应有效载荷中、这样可以正常工作。
现在、我想在没有任何请求的情况下将信息从 RN 发送到 BR、以 通知例如警报。
我在这里阅读< https://e2e.ti.com/support/wireless-connectivity/sub-1-ghz-group/sub-1-ghz/f/sub-1-ghz-forum/1067591/lp-cc1352p7-how-to-send-packets-from-wi-sun-router-node-to-border-router >,通过使用 CoAP_SERVICE_API.c 中的 COAP_SERVICE_REQUEST_SEND ()函数可以实现这一点 ,但我无法正确地使用它。
1) 1)相对于以下函数
uint16_t COAP_SERVICE_REQUEST_SEND (int8_t SERVICE_ID、uint8_t 选项、const uint8_t destination_addr[static 16]、uint16_t destination_port、sn_cap_msg_type_e msg_type、sn_cap_code_emsg_code、const * char sn_coap_content_format_e cont_type、const uint8_t *有效载荷_ptr、uint16_t 有效载荷_len、cap_service_respons_recv * request_respons_cb)
- 如何 获取 destination_addr 参数?
- REQUEST_RESPONSE_CB 是否为必填项?
2) 2)如何 在服务器模式下运行 BR 来接收来自 RN 的请求?
3) 3) spinel-cli 或 wfantund 是否准备支持此行为?
此致、
佛朗哥