コード例 #1
0
        public async Task <IHttpActionResult> PostSensorData(string key, int sensorId, string type, double data)
        {
            await api.StoreSensorData(key, sensorId, type, data);

            return(Ok());
        }
コード例 #2
0
        public async Task InsertSensorTemp()
        {
            SensorApi api = new SensorApi();

            await api.StoreSensorData("50ea847f-ad7a-4a1a-a5be-438f94e1372086da0c1a-46b8-4428-b549-a7b6f7857831ee3dd4e2-db11-4ab6-acf1-5e77e2f8e4ce", 2, "temp", 99);
        }