object PHYPayloadCodec
Provides encoding/decoding to/from bytes from/to a LoRa domain object
- Alphabetic
- By Inheritance
- PHYPayloadCodec
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- sealed abstract class DecodeStatus extends AnyRef
Returned by decoding when no decoding can be performed
- final case class UnimplementedMessage(major: Int, mtype: Int) extends DecodeStatus with Product with Serializable
- final case class UnknownMessageType(major: Int, mtype: Int) extends DecodeStatus with Product with Serializable
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def decode(phyPayload: Array[Byte]): Either[DecodeStatus, (PHYPayload, Option[MIC])]
Decode a LoRa PHYPayload
Decode a LoRa PHYPayload
- phyPayload
An array of bytes with the LoRa packet
- returns
Some equivalent domain object if decoding is successful
- def encode(confirmedDataDown: ConfirmedDataDown, micFromMsg: (Array[Byte], Int) => MIC): Array[Byte]
Encode an ConfirmedDataDown
Encode an ConfirmedDataDown
- confirmedDataDown
the domain object
- micFromMsg
a function to determine the MIC given a msg and its size
- returns
A byte array with the LoRa packet including the bytes required for the MIC
- def encode(confirmedDataUp: ConfirmedDataUp, micFromMsg: (Array[Byte], Int) => MIC): Array[Byte]
Encode an ConfirmedDataUp
Encode an ConfirmedDataUp
- confirmedDataUp
the domain object
- micFromMsg
a function to determine the MIC given a msg and its size
- returns
A byte array with the LoRa packet including the bytes required for the MIC
- def encode(unconfirmedDataDown: UnconfirmedDataDown, micFromMsg: (Array[Byte], Int) => MIC): Array[Byte]
Encode an UnconfirmedDataDown
Encode an UnconfirmedDataDown
- unconfirmedDataDown
the domain object
- micFromMsg
a function to determine the MIC given a msg and its size
- returns
A byte array with the LoRa packet including the bytes required for the MIC
- def encode(unconfirmedDataUp: UnconfirmedDataUp, micFromMsg: (Array[Byte], Int) => MIC): Array[Byte]
Encode an UnconfirmedDataUp
Encode an UnconfirmedDataUp
- unconfirmedDataUp
the domain object
- micFromMsg
a function to determine the MIC given a msg and its size
- returns
A byte array with the LoRa packet including the bytes required for the MIC
- def encode(joinAccept: JoinAccept, micFromMsg: (Array[Byte], Int) => MIC): Array[Byte]
Encode a JoinAccept
Encode a JoinAccept
- joinAccept
the domain object
- micFromMsg
a function to determine the MIC given a msg and its size
- returns
A byte array with the LoRa packet including the bytes required for the MIC
- Annotations
- @SuppressWarnings()
- def encode(joinRequest: JoinRequest, micFromMsg: (Array[Byte], Int) => MIC): Array[Byte]
Encode a JoinRequest
Encode a JoinRequest
- joinRequest
the domain object
- micFromMsg
a function to determine the MIC given a msg and its size
- returns
A byte array with the LoRa packet including the bytes required for the MIC
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- case object BufferUnderflow extends DecodeStatus with Product with Serializable
- case object ProprietaryMessage extends DecodeStatus with Product with Serializable