knolleary / pubsubclient

A client library for the Arduino Ethernet Shield that provides support for MQTT.
http://pubsubclient.knolleary.net/
MIT License
3.83k stars 1.47k forks source link

Recieving messages on ESP8266 #400

Open ghost opened 6 years ago

ghost commented 6 years ago

Hello, I have a question how to receive a message on ESP8266. I can perfectly publish them from the ESP8266, but I din't find anything how to receive it. Can you help me, please?

slavino commented 6 years ago

pubsub stands for publish/subscribe. Find a subscribe example anywhere in examples

LMGIFY: https://github.com/knolleary/pubsubclient/blob/master/examples/mqtt_publish_in_callback/mqtt_publish_in_callback.ino

ghost commented 6 years ago

Hmm. That's strange it didn't work till I reinstalled library