Skip to content

读数据程序无响应 #3

@easyboot

Description

@easyboot

我用工具读很快就可以读出来
image

用下面的代码
mcProtocolTcp = new McProtocolTcp(ip, port, McFrame.MC3E);

        result = await mcProtocolTcp.Open();

    public async Task<int[]> GetBitDevice(string DeviceName, int iSize)
    {
        var bytes = await mcProtocolTcp.GetBitDevice(DeviceName, iSize);
        return bytes;
        // var oDataNew2 = await mcProtocolTcp.GetBitDevice("M85", 10);//以位方式读取10个
        // return oDataNew2
    }

程序没有报错,但是也不会返回数据结果。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions