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򳵫