コード例 #1
0
        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);
        }
コード例 #2
0
        public void applySchedule(string greenhouseID, JObject schedule)
        {
            string greenhouseConnectionInfo = new GreenhouseIPRetriever().GetIP(greenhouseID);

            new Communicator().applySchedule(greenhouseConnectionInfo, schedule);
        }
コード例 #3
0
        public void RetryConnection(string greenhouseID)
        {
            string greenhouseConnectionInfo = new GreenhouseIPRetriever().GetIP(greenhouseID);

            new Communicator().SendRetryConnection(greenhouseConnectionInfo);
        }