コード例 #1
0
        private async Task UpdateSensor(string id)
        {
            WriteLine($"Testing PUT '{_route}/{SensorApi.Path}/{id}'.");

            // Sample JSON to send
            JObject json = new JObject {
                ["parkingSpace"] = "TEST: c#-api-sensor-update",
                ["latitude"]     = 33.810280507079874,
                ["longitude"]    = -117.9189795255661
            };

            await _sensorApi.Update(id, json.ToString());

            WriteLine("Sensor Update Success\n");
        }