Harald.Host.AdvertisingData behaviour (harald v0.3.0) View Source

Reference: version 5.2, vol 3, part c, 11.

Link to this section Summary

Link to this section Functions

Link to this function

ad_type_to_module(ad_type)

View Source
Link to this function

decode(encoded_ad_structures)

View Source
Link to this function

decode_ad_structure(arg)

View Source
Link to this function

encode(decoded_advertising_data)

View Source
Link to this function

encode_ad_structure(decoded_ad_structure)

View Source
Link to this function

new_ad_structure(ad_type_module, decoded_ad_data)

View Source
Link to this function

new_ad_structure(ad_type_module, ad_type, decoded_ad_data)

View Source

Link to this section Callbacks

Specs

ad_type() :: pos_integer()

Specs

decode(binary()) :: {:ok, map()} | {:error, :decode}

Specs

encode(map()) :: {:ok, binary()} | {:error, :encode}

Specs

new_ad_structure(map()) :: {:ok, map()} | {:error, :new_advertising_data}

Specs

new_ad_structure!(map()) :: map()