MQTT Issues

have some questions about MQTT Library

if i do Subscribe for an message (and if on Subscribe TOPICS values (PAYLOADS) are changed on BROKER)
did this should need to be appeared on on

Subscribe_Changed …
private static void Client_SubscribedChanged(object sender, MqttPacket packet)
{

or in PublishReceived …
private static void Client_PublishReceivedChanged(object sender, MqttPacket packet)
{

I believe
Subscribe_Changed raise event after Subscribe successful.

PublishReceived raise event after got msg from broker.

1 Like