简体   繁体   English

固件 - IDAS:TimeInstant 属性

[英]Fiware - IDAS: TimeInstant attribute

I'm using the MQTT Ultralight agent.我正在使用 MQTT Ultralight 代理。 I have seen that when the agent registers into the context broker an entity related to a device, the agent adds to that entity the “TimeInstant” attribute.我已经看到,当代理将与设备相关的实体注册到上下文代理中时,代理会向该实体添加“TimeInstant”属性。 This attribute seems to be on UTC+0.此属性似乎在 UTC+0 上。

I would like to work with UTC +1.我想与 UTC +1 一起工作。 I tried modifying the device's “TimeZone” when registering it, but seems that this doesn't work, because the time continues to be on UTC+0.我在注册时尝试修改设备的“时区”,但似乎这不起作用,因为时间仍然是 UTC+0。 Here an example:这里有一个例子:

curl -X POST 172.21.0.23:8090/iot/devices \
-i  \
-H "Content-Type: application/json" \
-H "Fiware-Service: red_entrada_4" \
-H "Fiware-ServicePath: /Prueba" \
-d '{
"devices":[
{
    "device_id": "AC_2", 
    "entity_name":"disp_entrada:AC_2",
    "protocol":"PDI-IoTA-MQTT-UltraLight", 
    "entity_type": "disp_entrada", 
    "timezone": "Europe/Madrid" 
}
]}'

Is there any way of modifying the default value of the “TimeInstant” attribute, in order to work with a specific UTC?有没有办法修改“TimeInstant”属性的默认值,以便使用特定的UTC?

This field was introduced as a future capability and, as it is said in the documentation, it is not in use today.这个字段是作为未来功能引入的,正如文档中所说,它今天没有使用。 This is the reason why ¡you are not able to change it at present.这就是为什么¡您目前无法更改它的原因。

Thanks for using IDAS and sorry for our late reply this time!感谢您使用 IDAS,很抱歉我们这次回复晚了!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM