BACnet.Protocol.DailySchedule (bacstack v0.0.1)
View SourceSummary
Functions
Encode a BACnet daily schedule into application tag-encoded.
Parse a BACnet daily schedule from application tags encoding.
Validates whether the given daily schedule is in form valid.
Types
@type t() :: %BACnet.Protocol.DailySchedule{schedule: [BACnet.Protocol.TimeValue.t()]}
Represents a BACnet Daily Schedule.
Functions
@spec encode(t(), Keyword.t()) :: {:ok, BACnet.Protocol.ApplicationTags.encoding_list()} | {:error, term()}
Encode a BACnet daily schedule into application tag-encoded.
@spec parse(BACnet.Protocol.ApplicationTags.encoding_list()) :: {:ok, {t(), rest :: BACnet.Protocol.ApplicationTags.encoding_list()}} | {:error, term()}
Parse a BACnet daily schedule from application tags encoding.
Validates whether the given daily schedule is in form valid.
It only validates the struct is valid as per type specification.