[英]Orion subscriptions do not detect the removal of entities
訂閱檢測實體的創建和更新,但不檢測實體的刪除。
POST http:// myhost:orion_port / v2 / subscriptions
{
"description": "Send a notification to detect any change",
"subject": {
"entities": [{
"idPattern": ".*"
}]
},
"notification": {
"http": {
"url": "http://myhost:myport/myendpoint"
}
}
}
POST http:// myhost:iot_aget_json_port / iot / devices
{
"devices": [{
"device_id": "entity_test_agent",
"entity_name": "entity_test_orion",
"entity_type": "test",
"transport": "HTTP",
"protocol": "IoTA-JSON",
"attributes": [{
"object_id": "status",
"name": "status",
"type": "Text"
}],
"static_attributes": [{
"name": "name",
"type": "Text",
"value": "Test"
}]
}]
}
PUT http:// myhost:orion_port / v2 / entities / entity_test_orion / attrs / name
{
"value": true
}
刪除http:// myhost:orion_port / v2 / entities / entity_test_orion
刪除http:// myhost:iot_aget_json_port / iot / devices / entity_test_agent
首先,我發送訂閱創建以檢測實體中的更改。
后來,我創建了一個實體,訂閱執行沒有問題。 然后我更新實體名稱,我再次完全收到訂閱,但如果我刪除該實體,我沒有收到任何事件。
有什么方法可以接收訂閱事件以檢測實體何時被刪除?
不幸的是,沒有訂閱處理刪除事件
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.