Hi, Alan.
English is not my native language😄
I use your SimpleAmqpLibrary, and all was right, when I worked with std::strings. Then I decided to use amqp_bytes_t.
I have connection, exchange, queue, binding between them - all work
but then I wanted to publish amqp_bytes_t_
it is a part of code:
amqp_bytes_t_ amqp_bytes;
amqp_bytes.bytes = pData; // pData is unsigned char*
amqp_bytes.len = (size_t)LenData; // LenData is a size of pData in int;
amqp_basic_properties_t prop;
AmqpClient::BasicMessage::ptr_t msg_send = AmqpClient::BasicMessage::Create(amqp_bytes, &prop);
channel->AmqpClient::BasicPublish("", queue, msg_send); // and there i have an error AmqpExceptionLibrary
what am I doing wrong?