class ShellyplugExporter::Gen::PlugClientGen2

Defined in:

shellyplug_exporter/gen/plug_client_gen2.cr

Constant Summary

RPC_CONFIG_ENDPOINT = "/rpc/Shelly.GetConfig"
RPC_STATUS_ENDPOINT = "/rpc/Shelly.GetStatus"

Class Method Summary

Class Method Detail

def self.fetch_settings(client, config : ShellyplugExporter::PlugConfig) : HTTP::Client::Response #

[View source]
def self.fetch_status(client, config : ShellyplugExporter::PlugConfig) : HTTP::Client::Response #

[View source]
def self.request(client, config : ShellyplugExporter::PlugConfig, endpoint) : HTTP::Client::Response #

[View source]