无法获取遥测字段的“值” [返回状态400-错误请求]

时间:2019-07-11 07:37:12

标签: rest thingsboard

我正在使用“ Swagger UI Rest-api”来获取事物板设备遥测数据。 我有“ X授权”:“((JWT令牌)”)。

我现在面临的问题是:

  I can able to get the "keys" present in my thingsboard device telemetry but can't able to get  "values" of  the respective keys.

这是我的示例:(在遥测控制器下)

* GET / api / plugins / telemetry / {entityType} / {entityId} / keys / timeseries:  该Api为我提供了设备遥测中的键。 *

响应正文 [

“能源”,   “ everyHourAggregation”,   “ friConsumption”,   “ friHConumption”,   “ monHConumption”,   “饱和消费”,   “ sunHConsumption”,   “ thurConsumption”,   “追随性”,   “ tueConsumption”,   “ tueHConsumption”,   “ uts”,   “ wedConsumption”,   “结婚” ] 响应码 200

GET / api / plugins / telemetry / {entityType} / {entityId} / values / timeseries {?interval,limit,agg,keys,startTs,endTs}

*响应正文*

HTTP状态400 –错误的请求h1 {font-family:Tahoma,Arial,sans-serif; color:white; background-color:#525D76; font-size:22px;} h2 {font-family:Tahoma,Arial, sans-serif;颜色:白色;背景颜色:#525D76;字体大小:16px;} h3 {font-family:Tahoma,Arial,sans-serif;颜色:白色;背景颜色:#525D76;字体大小:14px;}身体{font-family:Tahoma,Arial,sans-serif;颜色:黑色;背景色:白色;} b {font-family:Tahoma,Arial,sans-serif;颜色:白色;背景色:#525D76;} p {font-family:Tahoma,Arial,sans-serif; background:white; color:black; font-size:12px;} a {color:black;} a.name {color:black;} .line {height:1px; background-color:#525D76; border:none;}

HTTP状态400 –错误的请求

响应码 400

第一个API调用工作正常,但是第二个api调用返回“ 400 Bad Request”。 我无法跟踪为什么会发生此错误。

请告诉我,在哪里我需要获取有关此醒目的UI的错误日志文件说明。

或建议我通过其他方式进行其余api调用以获取设备远程数据

注意:我正在使用THINGSBOARD SERVER(专业版)免费试用帐户。

  Click the link below, I  attached the Screenshots of what i had done.

https://saravananofficial96.blogspot.com/2019/07/struggling-with-swagger-ui-rest-api-call.html

0 个答案:

没有答案