public void getLiveData(string greenhouseID) { JObject message = new JObject(); message.Add("procedure", "getLiveData"); message.Add("IPAddress", "127.0.0.1"); message.Add("port", 8090); string greenhouseConnectionInfo = new GreenhouseIPRetriever().GetIP(greenhouseID); new Communicator().getLiveData(greenhouseConnectionInfo, message); }
public void applySchedule(string greenhouseID, JObject schedule) { string greenhouseConnectionInfo = new GreenhouseIPRetriever().GetIP(greenhouseID); new Communicator().applySchedule(greenhouseConnectionInfo, schedule); }
public void RetryConnection(string greenhouseID) { string greenhouseConnectionInfo = new GreenhouseIPRetriever().GetIP(greenhouseID); new Communicator().SendRetryConnection(greenhouseConnectionInfo); }