Skip to content

Large payload disconnects the client #343

Open
@Mis1eader-dev

Description

@Mis1eader-dev

Sending a large payload, 2162 bytes as an example, disconnects the client immediately and reports -6 as an error, which corresponds to:

LWMQTT_NETWORK_FAILED_WRITE = -6

Edit: The buffer size for the client is sufficient:

static MQTTClient mqtt(128 + 48/* read */, 128 + 4096/* write */);

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