Skip to content

c8y_ModbusDevice of a child device is missing key 'type' #38

@zhongys-c8y

Description

@zhongys-c8y

A modbus child device added in the Modbus tab with a device protocol selected on the platform will have a fragment like:

"c8y_ModbusDevice": {
        "protocol": "TCP",
        "address": 8,
        "ipAddress": "172.17.0.1",
        "type": "/inventory/managedObjects/325530487"
    }

type includes the ID of the related device protocol. Without this info, the c8y Fieldbus device widget won't be able to select register/coil for creating operations.
When a tedge-modbus-plugin is running, the modbus child device managedObject will have following:

"c8y_ModbusDevice": {
        "protocol": "TCP",
        "address": 1,
        "port": 502,
        "ipAddress": "172.17.0.1"
    }

This will make the tedge-modbus-plugin can't work with the fieldbus device widget natively.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions