terrorsl / sMQTTBroker

Simple MQTT broker
MIT License
70 stars 19 forks source link

Message Receive #14

Closed leftcake closed 1 year ago

leftcake commented 2 years ago

I am able to connect my client to the server, but I cant receive any message from the same topic. How to solve it?

terrorsl commented 2 years ago

Maybe you need subscribe to this topic

leftcake commented 2 years ago

You mean the broker? I see the simple example in the library, it does not use any other function except broker.init()

terrorsl commented 2 years ago

No, I mean on client. Subscribe to topic and then send message. Broker received message and send to all how subscribe. If you want to see message on broker see advance example