Fiware-IDAS:TimeInstant属性 [英] Fiware - IDAS: TimeInstant attribute

查看:90
本文介绍了Fiware-IDAS:TimeInstant属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用MQTT Ultralight代理。我已经看到,当代理向上下文代理注册与设备相关的实体时,代理会将 TimeInstant属性添加到该实体。此属性似乎在UTC + 0上。

I’m using the MQTT Ultralight agent. 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. This attribute seems to be on UTC+0.

我想使用UTC +1。我尝试在注册设备时修改设备的 TimeZone,但似乎不起作用,因为时间仍然是UTC + 0。下面是一个示例:

I would like to work with 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. 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" 
}
]}'

有没有办法修改 TimeInstant属性的默认值,以便

Is there any way of modifying the default value of the "TimeInstant" attribute, in order to work with a specific 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.

感谢使用IDAS,对不起,这次我们的答复太晚了!

Thanks for using IDAS and sorry for our late reply this time!

这篇关于Fiware-IDAS:TimeInstant属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆