Skip to content

传输数据有错误 #5

@Leadrive

Description

@Leadrive

用的是安信可esp-g蓝牙网关。模块是PB-02,全部烧了最新固件。
服务器端发送
{"addr":"0005","opcode":"d18888","data":"abc"}

PB-02收到的信息
{"daddr":,"saddr":1"opcode":d8888,"datalen":2,"data":AB0C ret;1}}

感觉有3个地方不对
1、服务器发送提abc,自动转为了大写
2、datalen应该是3,却得到2,这个数据现在变成了双数,如发送是abcd,则datalen=2,如发送123456,则datalen=3
3、abc不是双数,中间填充了个0

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