Cumulocity-IoT / cumulocity-migration-tool

A Cumulocity webapp to migrate applications, dashboards, groups, devices, simulators, smart rules, images, and managed objects between tenants. Developed by Global Presales.
Apache License 2.0
18 stars 6 forks source link

Support migration of devices created from device protocols / device types #25

Open haraldmeyer opened 4 years ago

haraldmeyer commented 4 years ago

Devices created from device protocols or device types include a reference to that protocol / device. This includes for example OPC-UA and Cloud Fieldbus but probably also LWM2M.

For Modbus this looks like this:

    "c8y_ModbusDevice": {
        "protocol": "TCP",
        "address": 105,
        "ipAddress": "<<redacted>>",
        "type": "/inventory/managedObjects/<<redacted>>"
    },

As device types & device protocols can be migrated, these ids (in this case the "type" field) need to be updated as well.