Fiware - IDAS:TimeInstant属性

时间:2016-03-14 15:55:59

标签: fiware agent fiware-orion

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

我想使用UTC +1。我在注册时尝试修改设备的“TimeZone”,但似乎这不起作用,因为时间继续在UTC + 0上。这是一个例子:

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”属性的默认值,以便使用特定的UTC?

1 个答案:

答案 0 :(得分:1)

此字段是作为未来功能引入的,正如文档中所述,它现在尚未使用。这就是为什么你目前无法改变它。

感谢您使用IDAS,抱歉我们这次迟到了回复!