忠兴镇物联网设备对接
    忠兴镇物联网设备对接
    • 设备数据接收
      POST
    • 虫情灯设备列表
      POST
    • 虫情灯最新采集图片
      GET
    • 虫情灯历史采集图片
      GET

      设备数据接收

      POST
      https://zhongxinzhen.dvpc315.cn/api/Zhongxinzhen/SaveFormData

      请求参数

      Header 参数

      Body 参数application/json

      示例
      {
          "schemeInfoId": "Form_Iot_WeatherData",
          "formData": "{\"imei\":\"qxz2\",\"etime\":\"2025-06-10 14:00:00\",\"temperature\": 32.5,\"temperatureUnit\":\"℃\",\"humidity\": 56.2,\"humidityUnit\":\"%RH\",\"pressure\": 1022,\"pressureUnit\":\"kpa\",\"rainfall\": 0.2,\"rainfallUnit\":\"mm\",\"windspeed\": 3,\"windspeedUnit\":\"m/s\",\"winddirection\": \"东北\",\"evaporation\": 2.5,\"evaporationUnit\":\"mm\",\"illumination\": 10550,\"illuminationUnit\":\"Lux\",\"sunshinehours\": 6,\"sunshinehoursUnit\":\"h\",\"co2\": 466,\"co2Unit\":\"ppm\",\"globalRadiation\": 105,\"globalRadiationUnit\":\"w/m²\"}"
      }

      请求示例代码

      Shell
      JavaScript
      Java
      Swift
      Go
      PHP
      Python
      HTTP
      C
      C#
      Objective-C
      Ruby
      OCaml
      Dart
      R
      请求示例请求示例
      Shell
      JavaScript
      Java
      Swift
      curl --location --request POST 'https://zhongxinzhen.dvpc315.cn/api/Zhongxinzhen/SaveFormData' \
      --header 'token: 66bb0d38d99f4b97a7bc6e61234ba134' \
      --header 'Content-Type: application/json' \
      --data-raw '{
          "schemeInfoId": "Form_Iot_WeatherData",
          "formData": "{\"imei\":\"qxz2\",\"etime\":\"2025-06-10 14:00:00\",\"temperature\": 32.5,\"temperatureUnit\":\"℃\",\"humidity\": 56.2,\"humidityUnit\":\"%RH\",\"pressure\": 1022,\"pressureUnit\":\"kpa\",\"rainfall\": 0.2,\"rainfallUnit\":\"mm\",\"windspeed\": 3,\"windspeedUnit\":\"m/s\",\"winddirection\": \"东北\",\"evaporation\": 2.5,\"evaporationUnit\":\"mm\",\"illumination\": 10550,\"illuminationUnit\":\"Lux\",\"sunshinehours\": 6,\"sunshinehoursUnit\":\"h\",\"co2\": 466,\"co2Unit\":\"ppm\",\"globalRadiation\": 105,\"globalRadiationUnit\":\"w/m²\"}"
      }'

      返回响应

      🟢200成功
      application/json
      Body

      示例
      {}
      修改于 2025-06-10 08:34:59
      下一页
      虫情灯设备列表
      Built with