Skip to content

After the modbus device connects to the mapper, the container of the mapper fails. #108

Closed
@NicoleLeeuu

Description

@NicoleLeeuu

The Modbus Mapper is running normally. After the device is delivered, the container of the mapper fails.
微信图片_20230731171819
View the mapper log. The command output is "panic: runtime error: invalid memory address or nil pointer dereference".
微信图片_20230731170900
Locate the problem. It was found that the payload in the Run() function, located in the mappers/modbus-dmi/device/twindata.go file, did not add the "Expected" data section. This results in an error when accessing msg.Twin.Expected when executing the parse.ConvMsgTwinToGrpc(msg.Twin) function.
Is this a bug in the process of design and implementation? If so, please leave bugfix matters to me.

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