You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Busy, Done behavior is unexpected. AS variable trace attached.
AR: E4.53
IotMqtt: rev5, 4.53
I am seeing the Busy status goes TRUE sometime after Send goes TRUE (sometimes). I would expect the Busy to go High with Send and stay TRUE until done goes TRUE.
I am also seeing the Done bit say TRUE for 2 cycles, when I would expect it to be TRUE for just 1 cycle.
Code
Note buildPacket will populate publishMessage and return a length.
PROGRAM_INITIotMqttPublish_0.QoS :=IotMqtt_QoS0; // We are sending enough data, dont confirm its recievedEND_PROGRAMPROGRAM_CYCLICIotMqttPublish_0.IotMqttLink :=gMqttApi.link;
IotMqttPublish_0.Enable :=Configuration.enable;
IF (IotMqttPublish_0.ActiveANDgMqttApi.connected) THENIotMqttPublish_0.Topic :=ADR(Configuration.topic);
// Send dataIFNOTIotMqttPublish_0.BusyANDNOTIotMqttPublish_0.DoneANDNOTIotMqttPublish_0.ErrorTHEN// Build packetIotMqttPublish_0.Send := TRUE;
IotMqttPublish_0.Buffer :=ADR(publishMessage);
IotMqttPublish_0.BufferLength :=buildPacket(ADR(publishMessage), SIZEOF(publishMessage), ADR(encodeError));
END_IFEND_IFIFIotMqttPublish_0.EnableOR (IotMqttPublish_0.IotMqttLink<>0) THENIotMqttPublish_0();
IFIotMqttPublish_0.DoneTHEN// This is so we can send packets back to backIotMqttPublish_0.Send := FALSE;
// IotMqttPublish_0();END_IFEND_IFEND_PROGRAMPROGRAM_EXITIotMqttPublish_0(Enable := FALSE);
END_PROGRAM
The text was updated successfully, but these errors were encountered:
Description
The Busy, Done behavior is unexpected. AS variable trace attached.
AR: E4.53
IotMqtt: rev5, 4.53
I am seeing the Busy status goes TRUE sometime after Send goes TRUE (sometimes). I would expect the Busy to go High with Send and stay TRUE until done goes TRUE.
I am also seeing the Done bit say TRUE for 2 cycles, when I would expect it to be TRUE for just 1 cycle.
Code
Note buildPacket will populate publishMessage and return a length.
The text was updated successfully, but these errors were encountered: