Skip to content

Does AWS IOT C++ SDK support publish binary data to Dynamo DB? #98

@chamber-wang

Description

@chamber-wang

Hi All,

It seems that Python SDK support binary data publish by bytearray.
Does this also work in the C++ SDK as well? Thanks

C++
mqtt::QoS qos, const util::String &payload, ActionData::AsyncAckNotificationHandlerPtr p_async_ack_handler, uint16_t &packet_id_out);

**# Python 2.7.x and 3.x** # Python 2.7.x and 3.x
filePath = "./fake/path/test.jpg"
openMode = "rb" # Read as binary file
imageFile = open(filePath, mode=openMode)
imageData = bytearray(imageFile.read())

myAWSIoTMQTTClient.publish("topic/to/receive/image", imageData, 1)`

https://forums.aws.amazon.com/thread.jspa?messageID=736619&#736619

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