Skip to content

connect_op.hpp is missing the start_clean configuration feature. #29

@marsareacn

Description

@marsareacn
void send_connect() {
    auto packet = control_packet<allocator_type>::of(
        no_pid, get_allocator(),
        encoders::encode_connect,
        _ctx.creds.client_id,
        _ctx.creds.username, _ctx.creds.password,
        _ctx.keep_alive, false, _ctx.co_props, _ctx.will_msg
    );

the "false" is const, should be modified:
void send_connect() {
auto packet = control_packet<allocator_type>::of(
no_pid, get_allocator(),
encoders::encode_connect,
_ctx.creds.client_id,
_ctx.creds.username, _ctx.creds.password,
_ctx.keep_alive, _ctx.start_clean, _ctx.co_props, _ctx.will_msg
);

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