Skip to content

chore: update orion and mongodb versions#491

Open
djs0109 wants to merge 9 commits intomasterfrom
489-Support-Orion-4-X
Open

chore: update orion and mongodb versions#491
djs0109 wants to merge 9 commits intomasterfrom
489-Support-Orion-4-X

Conversation

@djs0109
Copy link
Copy Markdown
Collaborator

@djs0109 djs0109 commented Mar 25, 2026

closes #489

@djs0109
Copy link
Copy Markdown
Collaborator Author

djs0109 commented Mar 25, 2026

Seems like Orion API has not changed much. The only change is regarding the command attribute. If a device with command is created, the command triple (dummy_cmd_info, dummy_cmd_status, dummy_cmd) will show up when querying the entity:

[
    {
        "id": "test_entity",
        "type": "test_entity_type",
        "TimeInstant": {
            "type": "DateTime",
            "value": "2026-03-25T17:12:50.705Z",
            "metadata": {}
        },
        "dummy_cmd_info": {
            "type": "commandResult",
            "value": " ",
            "metadata": {}
        },
        "dummy_cmd_status": {
            "type": "commandStatus",
            "value": "UNKNOWN",
            "metadata": {}
        },
        "dummy_cmd": {
            "type": "command",
            "value": "",
            "metadata": {}
        }
    }
]

However, these 3 attributes are actually not saved in the entity object.
The batch endpoint will complaint that it cannot delete things that do not exist.
The current work around is to explicitly delete the entity in test_clear_iot_agent

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support Orion 4.X

1 participant