struct PlaceOS::API::Models::Module

Included Modules

Defined in:

placeos/api/models/module.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def connected : Bool #

Flag for connectivity state.


[View source]
def control_sytem_id : String | Nil #

The system this module is bound to (logic modules only).


[View source]
def created_at : Time #

[View source]
def custom_name : String | Nil #

The modules class name (Display, Lighting etc) if it should differ from the default defined in the dependency.


[View source]
def dependency_id : String #

The driver that defines this module.


[View source]
def edge_id : String #

The engine node that this module runs on.


[View source]
def id : String #

A universally unique identifier for the module.


[View source]
def ignore_connected : Bool #

If enabled, system metrics ignore connectivity state.


[View source]
def ignore_startstop : Bool #

If enabled, system level start and stop actions are ignored. This is recommended for modules shared by many systems (e.g. a lighting gateway).


[View source]
def ip : String | Nil #

IP address or resolvable hostname of the device this module connects to.


[View source]
def makebreak : Bool #

If enabled, provides an ephemeral connection that disconnects during idle periods.


[View source]
def notes : String | Nil #

Markdown formatted text that describes this module.


[View source]
def port : Int32 | Nil #

The TCP or UDP port that the associated device communicates on.


[View source]
def role : Role #

The associated driver type.


[View source]
def running : Bool #

Module start/stop state.


[View source]
def settings : Hash(String, JSON::Any) #

JSON object representing the system's configuration.


[View source]
def tls : Bool | Nil #

True if the device communicates securely.


[View source]
def udp : Bool | Nil #

Protocol uses UDP rather that TCP.


[View source]
def updated_at : Time #

[View source]
def uri : URI | Nil #

The based URI of the remote service (service modules only).


[View source]