ESP32. MQTT. Broker. Publish. Subscribe. ThingSpeak

why port at hivemq not same with port at mit app?
if i write at hivemq, host : broker.hivemq.com. , at mit app must be broker: broker.hivemq.com . it right?

the topic at publish should be title that my project right?

https://www.hivemq.com/public-mqtt-broker/

please help me how to get updated data on mqtt server
Hello friend I'm studying the mqtt protocol
my project is to turn the room lights on and off with every button publish and subscribe
publish to send data values and subscribe to receive data but there is a problem when the application is disconnected with the subscriber data broker not being successfully updated
if anyone in the mqtt extension can request a request to the broker to update the missed data, I really need advice. thanks

I use the following extension
Ullis Roboter Seite/AI2 MQTT

@Moh_Khafil_A

You have posted the same on Kodular Community. Are you working with Kodular or App Inventor ?

sorry I just want to receive input and suggestions from different forums , because the two platforms are almost the same implementation . is this against the rules? thanks

You didn't answer my question...

not working this porject with Cellular data

You should explain a "little bit" what you are doing.
There are several examples, I tried n. 18 and is working ok:

  • press connect to broker
  • press subscribe
  • press start accel
  • after a few seconds press stop accel
    ( this example is sending too much data to the broker and hivemq asks not to "abuse" their free broker )

The first 3 labels show the "accel data" read from your phone.
The last 3 labels show the same data read back from the broker

P.S.
I added also a status label just to see what's going on, during connection and subscription

P.P.S.
You can also "interact" withe the phone using the hivemq mqtt web client ( just subscribe or publish to the same topic as set in the aia, which is juan/acelerometer )