nRF5 IoT SDK  v0.9.0
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
IoT Utility tools

Common IoT utility tools like parsing IPv6 address from a URI. More...

Functions

uint32_t ipv6_parse_addr (uint8_t *p_addr, const char *p_uri, uint8_t uri_len)
 IoT IPv6 address parsing. More...
 

Detailed Description

Common IoT utility tools like parsing IPv6 address from a URI.

This module provides utility functions like parsing IPv6 address from a URI.

Function Documentation

uint32_t ipv6_parse_addr ( uint8_t *  p_addr,
const char *  p_uri,
uint8_t  uri_len 
)

IoT IPv6 address parsing.

Supports parsing all legal IPv6 address formats as defined by the RFC.

Parameters
[out]p_addrPointer to array large enough to hold parsed address. MUST be 16 bytes big.
[in]p_uriString with address that should be parsed.
[in]uri_lenLength of p_uri string.