Harald.DataType.ManufacturerData (harald v0.3.0) View Source
The Manufacturer Specific data type is used for manufacturer specific data.
Reference: Core Specification Supplement, Part A, section 1.4.1
Modules under the Harald.ManufacturerData scope should implement the
Harald.ManufacturerDataBehaviour and Harald.Serializable behaviours.
Link to this section Summary
Functions
Deserializes a manufacturer data binary.
Returns a list of implementation modules.
Serializes manufacturer data.
Link to this section Functions
Deserializes a manufacturer data binary.
iex> deserialize(<<76, 0, 2, 21, 172, 185, 137, 206, 253, 163, 76, 179, 137, 41, 101, 34, 252, 127, 2, 42, 181, 255, 224, 255, 225>>)
{:ok, {"Apple, Inc.", {"iBeacon", %{major: 46591, minor: 57599, tx_power: 225, uuid: 229590585283448776073135497520678371882}}}}
Returns a list of implementation modules.
Serializes manufacturer data.