Function lorawan::parser::parse_with_factory
source · pub fn parse_with_factory<T, F>(
data: T,
factory: F
) -> Result<PhyPayload<T, F>, Error>
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.