禁用FIWARE MQTT JSON IOT代理中设备的自动提供
我们正在使用Fiware Orion NGSI V2版本和MQTT JSON IOT代理。我们已使用下面使用的上下文经纪和物联网代理的版本。
默认情况下,每当我们通过MQTT代理发送遥测数据时,对于FIWare中不存在的设备,IoT Agent都会在IoT代理中自动配置/创建该设备,并在上下文Broker中进行相应的实体。
我们想限制此行为,不希望IoT代理自动提供设备,而仅接受已经注册的设备的遥测数据。
我们已经尝试将IOTA_APPEND_MODE环境变量设置为False,也尝试将AutoProvision Flag设置为False时创建服务组时。这些选项都没有工作,并且自动改造仍在进行。
需要您有关如何禁用自动提供的物联网代理的帮助和指导。
物联网代理版本:
{"libVersion":"2.12.0-next","port":"4041","baseRoot":"/","version":"1.14.0-next"}
上下文经纪版:
{
"orion" : {
"version" : "2.3.0",
"uptime" : "12 d, 18 h, 50 m, 12 s",
"git_hash" : "764f44bff1e73f819d4e0ac52e878272c375d322",
"compile_time" : "Tue Nov 5 09:16:27 UTC 2019",
"compiled_by" : "root",
"compiled_in" : "cfe8becf7aae",
"release_date" : "Tue Nov 5 09:16:27 UTC 2019",
"doc" : "https://fiware-orion.rtfd.io/en/2.3.0/"
}
}
We are using FIWARE Orion NGSI V2 version and MQTT JSON IoT Agent. We have attached the version of Context Broker and IoT Agent we are using below.
By default, whenever we send telemetry data through MQTT broker, for a device which does not exist in Fiware, the IoT Agent is automatically provisioning/creating the device in IoT Agent and corresponding entity in Context Broker.
We want to restrict this behavior and do not want the IoT Agent to auto-provision devices, but to only accept telemetry data for already registered devices.
We have already tried to set the IOTA_APPEND_MODE environment variable to false, also tried to set the autoprovision flag to false when creating the service group. None of these options are working and autoprovisioning is still happening.
Need your help and guidance on how do we disable the auto-provisioning IoT Agent.
IoT Agent version:
{"libVersion":"2.12.0-next","port":"4041","baseRoot":"/","version":"1.14.0-next"}
Context Broker Version:
{
"orion" : {
"version" : "2.3.0",
"uptime" : "12 d, 18 h, 50 m, 12 s",
"git_hash" : "764f44bff1e73f819d4e0ac52e878272c375d322",
"compile_time" : "Tue Nov 5 09:16:27 UTC 2019",
"compiled_by" : "root",
"compiled_in" : "cfe8becf7aae",
"release_date" : "Tue Nov 5 09:16:27 UTC 2019",
"doc" : "https://fiware-orion.rtfd.io/en/2.3.0/"
}
}
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您是否试图为给定的iotagent设备组停用自动驾驶量标志?
github.com/telefonicaid/iotagent-node-lib/blob/f2e0305ca181140ee1fd1df8debb5a083838bee/doc/doc/advanced-topics.md#autprovision-configuration-configuration-configuration-autoprovision-autoprovision
Best
Have you tried to deactivate the autoprovision flag for a given iotagent device group?
https://github.com/telefonicaid/iotagent-node-lib/blob/f2e0305ca13a181140ee1fd1df8debb5a0838bee/doc/advanced-topics.md#autoprovision-configuration-autoprovision
Best
版本 1.18.0 似乎已经解决了一些与<<<<<代码> Autoprovision 标志。如@fgalan所述,您正在运行的版本很旧,因此您可能需要至少升级到1.18.0。我真的鼓励您升级,因为它是向后兼容的。
Version 1.18.0 seems it fix some issues related with
autoprovision
flag. As @fgalan mentioned, the version you are running is quite old, so probably you need to upgrade at least to 1.18.0. I really encourage you to upgrade since it is backward compatible.