Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OpenHouseEnergyModuleClient ¶
type OpenHouseEnergyModuleClient struct {
// contains filtered or unexported fields
}
It is client for connecting to "OpenHouseEnergyModule" server.
func Connect ¶
func Connect(url string) (OpenHouseEnergyModuleClient, error)
Fonction to connect to the server : prerequisites for all communications : call to GetAlertHistory and Set
func (OpenHouseEnergyModuleClient) Close ¶
func (client OpenHouseEnergyModuleClient) Close()
Fonction to close connection to the server
func (OpenHouseEnergyModuleClient) SendModuleDescription ¶
func (client OpenHouseEnergyModuleClient) SendModuleDescription(description *messages.SendModuleDescriptionRequest) (string, error)
Set the current value of the variable name registred on the server.
func (OpenHouseEnergyModuleClient) Test ¶
func (client OpenHouseEnergyModuleClient) Test() (string, error)
Function to test client/server communication with simple ASCII (useless now?)
type OpenHouseEnergyModuleServer ¶
type OpenHouseEnergyModuleServer struct {
// contains filtered or unexported fields
}
func Listen ¶
func Listen(port int32) (OpenHouseEnergyModuleServer, error)
Launch the server and never stop (Hard kill for stop : TODO : better way: special message?)
func (OpenHouseEnergyModuleServer) Run ¶
func (server OpenHouseEnergyModuleServer) Run() (OpenHouseEnergyModuleServer, error)
Click to show internal directories.
Click to hide internal directories.