Versions in this module Expand all Collapse all v0 v0.0.2 Mar 8, 2023 v0.0.1 Mar 8, 2023 Changes in this version + const DefaultFPort + var ErrNoPayloadForCID = errors.New("lorawan/applayer/clocksync: no payload for given CID") + type AppTimeAnsPayload struct + Param AppTimeAnsPayloadParam + TimeCorrection int32 + func (p *AppTimeAnsPayload) Size() int + func (p *AppTimeAnsPayload) UnmarshalBinary(data []byte) error + func (p AppTimeAnsPayload) MarshalBinary() ([]byte, error) + type AppTimeAnsPayloadParam struct + TokenAns uint8 + type AppTimeReqPayload struct + DeviceTime uint32 + Param AppTimeReqPayloadParam + func (p *AppTimeReqPayload) UnmarshalBinary(data []byte) error + func (p AppTimeReqPayload) MarshalBinary() ([]byte, error) + func (p AppTimeReqPayload) Size() int + type AppTimeReqPayloadParam struct + AnsRequired bool + TokenReq uint8 + type CID byte + const AppTimeAns + const AppTimeReq + const DeviceAppTimePeriodicityAns + const DeviceAppTimePeriodicityReq + const ForceDeviceResyncReq + const PackageVersionAns + const PackageVersionReq + func (i CID) String() string + type Command struct + CID CID + Payload CommandPayload + func (c *Command) UnmarshalBinary(uplink bool, data []byte) error + func (c Command) MarshalBinary() ([]byte, error) + func (c Command) Size() int + type CommandPayload interface + MarshalBinary func() (data []byte, err error) + Size func() int + UnmarshalBinary func(data []byte) error + func GetCommandPayload(uplink bool, c CID) (CommandPayload, error) + type Commands []Command + func (c *Commands) UnmarshalBinary(uplink bool, data []byte) error + func (c Commands) MarshalBinary() ([]byte, error) + type DeviceAppTimePeriodicityAnsPayload struct + Status DeviceAppTimePeriodicityAnsPayloadStatus + Time uint32 + func (p *DeviceAppTimePeriodicityAnsPayload) UnmarshalBinary(data []byte) error + func (p DeviceAppTimePeriodicityAnsPayload) MarshalBinary() ([]byte, error) + func (p DeviceAppTimePeriodicityAnsPayload) Size() int + type DeviceAppTimePeriodicityAnsPayloadStatus struct + NotSupported bool + type DeviceAppTimePeriodicityReqPayload struct + Periodicity DeviceAppTimePeriodicityReqPayloadPeriodicity + func (p *DeviceAppTimePeriodicityReqPayload) UnmarshalBinary(data []byte) error + func (p DeviceAppTimePeriodicityReqPayload) MarshalBinary() ([]byte, error) + func (p DeviceAppTimePeriodicityReqPayload) Size() int + type DeviceAppTimePeriodicityReqPayloadPeriodicity struct + Period uint8 + type ForceDeviceResyncReqPayload struct + ForceConf ForceDeviceResyncReqPayloadForceConf + func (p *ForceDeviceResyncReqPayload) UnmarshalBinary(data []byte) error + func (p ForceDeviceResyncReqPayload) MarshalBinary() ([]byte, error) + func (p ForceDeviceResyncReqPayload) Size() int + type ForceDeviceResyncReqPayloadForceConf struct + NbTransmissions uint8 + type PackageVersionAnsPayload struct + PackageIdentifier uint8 + PackageVersion uint8 + func (p *PackageVersionAnsPayload) Size() int + func (p *PackageVersionAnsPayload) UnmarshalBinary(data []byte) error + func (p PackageVersionAnsPayload) MarshalBinary() ([]byte, error)