This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

IoT SDK Global IPv6 Address??

[Dev Env]

  • nRF51 DK
  • IoT SDK 0.8
  • IoT SoftDevice

[Question]

coap ipv6 server sample used link-local address

how can i change to link-local address to global ipv6 address?

[Source Code]

uint32_t err_code;

eui64_t eui64_addr;

ipv6_init_t init_param;

ipv6_addr_t local_addr;

IPV6_EUI64_CREATE_FROM_EUI48(eui64_addr.identifier, m_local_ble_addr.addr, m_local_ble_addr.addr_type);

init_param.p_eui64 = &eui64_addr;

init_param.event_handler = ip_app_handler;

err_code = ipv6_init(&init_param);

APP_ERROR_CHECK(err_code);

err_code = icmp6_receive_register(icmp6_handler);

APP_ERROR_CHECK(err_code);

thanks a lot

Parents Reply Children
No Data
Related