This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] CC1354P10:WiSun CoAP 示例中的节点 IP 地址

Guru**** 2391155 points
Other Parts Discussed in Thread: CC1354P10

请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/wireless-connectivity/sub-1-ghz-group/sub-1-ghz/f/sub-1-ghz-forum/1374256/cc1354p10-node-ip-adress-in-wisun-coap-example

器件型号:CC1354P10

工具与软件:

大家好、我使用"ns_CoAP_node_LP_EM_CC1354P10_1_tirtos7_ticlang"示例。 我想打印此节点的 UART IP 单播 IP 地址。 我尝试使用"get_globalUnicast_address"函数、但 WISUN_NCP_ENABLE 未定义该函数。 但是、当我使用它时、它返回 NULL。 可以帮帮我吗?

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的 Sebastian:

    如果要获取节点的 IP 地址、可以使用以下代码:

    uint8_t temp_ipv6_local[16];
    arm_net_address_get(interface_id, ADDR_IPV6_LL, temp_ipv6_local);

    此致、

    Arthur