Skip to content

Is there a way to send 0x00? #136

Open
@pauljurczak

Description

@pauljurczak

When I try:

  uint8_t a[8] = {48, 49, 50, 0, 51, 52, 0, 53};
  client.publish(outTopic, String(a, 8));

the message is truncated at the first 0x00. Is there a way to send an arbitrary byte stream? I don't see an overload of publish(), which accepts other than String arguments.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions