Skip to content

payload in Adafruit_MQTT publish should be const #115

Open
@flavio-fernandes

Description

@flavio-fernandes

The Method:
bool Adafruit_MQTT_Publish::publish(uint8_t *payload, uint16_t bLen)

should be

bool Adafruit_MQTT_Publish::publish(const uint8_t *payload, uint16_t bLen)

since payload is not modified in the implementation.

Proposed fix in PR #114

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