Mike Maikaefer <mike.maikaefer@xxxxxxxxx>
discussions for paho project <paho-dev@xxxxxxxxxxx>
Publish does not appear in Broker
OK, changed all to the non-SN-functions but with only
few success. Bevywise now logs an incoming connection in the console and
lists the client-ID, but does not show any of my publications. In HiveMQ
nothing has changed, it shows small peaks in the "Connections"-field
but I also can't see the publication anywhere...
On Thu, Jul 19, 2018 at 1:47 PM, Mike Maikaefer <mike.maikaefer@xxxxxxxxx>
This sounds good - I didn't notice the difference between
both. Thanks, I'll try it!
Iâm not an expert with the C/C++ lib and the APIs, but it seems youâre
trying to use MQTT-SN instead of plain MQTT. At least HiveMQ does currently
not support MQTT-SN.
Could this be the source of the problem?
On 19 Jul 2018, at 13:07, Mike Maikaefer wrote:
I'm using the embedded C/C++ variant of the PAHO-project out of a
microcontroller. My Problem: although the data are sent (can be verified
with WireShark), a broker these data sent to does not recognise them and
does not show the related data. This was testedwith HiveMQ and BevyWise
This is what I'm doing to create and send a message (pseudo-code due to
some microcontroller-specific function calls):
data.clientID.cstring=(char*)m_machineID->c_str(); // get
len = MQTTSNSerialize_connect(buf,MAX_BUFLEN,&data);
topic.data.long_.name=(char*)topicData->c_str(); // get
the topic data
strncpy(payload,payData->c_str(),200); // get the data
to be sent
// here the fourth parameter has to be "3", when
setting it to "0", the
topic does not become part
// of the data in "buf"