BACnet.Protocol.Services.IHave (bacstack v0.0.1)
View SourceThis module represents the BACnet I-Have service.
The I-Have service is used as a response to the Who-Has service.
Service Description (ASHRAE 135):
The IHave service is used to respond to Who-Has service requests or to advertise the existence of an object with a given Object_Name or Object_Identifier. The I-Have service request may be issued at any time and does not need to be preceded by the receipt of a Who-Has service request.
Summary
Functions
Converts the given Unconfirmed Service Request into an I-Have Service.
Get the service name atom.
Whether the service is of type confirmed or unconfirmed.
Get the Unconfirmed Service request for the given I-Have Service.
Types
@type t() :: %BACnet.Protocol.Services.IHave{ device: BACnet.Protocol.ObjectIdentifier.t(), object: BACnet.Protocol.ObjectIdentifier.t(), object_name: String.t() }
Functions
@spec from_apdu(BACnet.Protocol.APDU.UnconfirmedServiceRequest.t()) :: {:ok, t()} | {:error, term()}
Converts the given Unconfirmed Service Request into an I-Have Service.
See the BACnet.Protocol.Services.Protocol
function documentation for more information.
@spec get_name() :: atom()
Get the service name atom.
@spec is_confirmed() :: false
Whether the service is of type confirmed or unconfirmed.
@spec to_apdu(t(), Keyword.t()) :: {:ok, BACnet.Protocol.APDU.UnconfirmedServiceRequest.t()} | {:error, term()}
Get the Unconfirmed Service request for the given I-Have Service.
See the BACnet.Protocol.Services.Protocol
function documentation for more information.