Decode an advertisement payload received from the ble central plugin. If an output value is provided, all parsed content will be placed on it - otherwise, parsed content will be shimmed into the provided input value, and that value will be returned.
NOTE: if the input is an ArrayBuffer, this will generate a new object as the output rather than hammering properties onto the ArrayBuffer instance.
Optional
output: Partial<Advertisement>Generated using TypeDoc
Generalized decoder that does boilerplate advertising data checks / parsing based on the type of the advertising data recieved.
This can be sub-classed to further customize the decode functionality.