pub fn parse_with_factory<T, F>(
    data: T,
    factory: F
) -> Result<PhyPayload<T, F>, Error>
where T: AsRef<[u8]> + AsMut<[u8]>, F: CryptoFactory,
Expand description

Parses a payload as LoRaWAN physical payload.

Check out parse if you do not need custom crypto factory.

Returns error “Unsupported major version” if the major version is unsupported.

Argument

  • bytes - the data from which the PhyPayload is to be built.
  • factory - the factory that shall be used to create object for crypto functions.