I need help with an MQTT project

I am trying to understand MQTT by making client and server programs. When I send a request from the client, the server gets it. However, for some reason, the client doesn't seem to get a response. I'm not sure why this happens.

Connect to the broker just once. Reconnect breaks the "old" connection/subscription.

Thank you! I figured it was a silly mistake.

Couple of other things
I highly recommend downloading and installing MQTT Explorer for helping with debugging MQTT issues

Also, I recommend using a hierarchical topic structure like
bb21/request_page and bb21/send_page etc

rather than two distinct ones - makes things simpler to monitor

Also, I wouldn't be hiding variables until I'd got everything working - why make debugging harder :slight_smile:

Does using a hierarchical topic structure do anything different than two top-level topics? I genuinely don't know.

Do you pronounce it em-cue-tee-tee? Or muh-quit?

Just easier to manage.

I pronounce it as an initialisation. So, should I use an?

I would.

Okay. Thanks.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.