Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Subscribe to /# or # topic (feed) #133

Open
ReinhardDaemon opened this issue Oct 10, 2018 · 0 comments
Open

Subscribe to /# or # topic (feed) #133

ReinhardDaemon opened this issue Oct 10, 2018 · 0 comments

Comments

@ReinhardDaemon
Copy link

Hello,

Subscriptions to # topics (feeds) do not seem to work,
but regarding to:
(https://learn.adafruit.com/adafruit-io/mqtt-api)
it should work.

Adafruit_MQTT_Subscribe subInst = Adafruit_MQTT_Subscribe(&mqtt, "test/#"); 
subInst.setCallback(subInstCallback);
mqtt.subscribe(&subInst);


void subInstCallback(char *data, uint16_t len) {
  Serial.println();
  Serial.print("----- subInstCallback:BEG ------");
  Serial.println(data);
  Serial.print("----- subInstCallback:END ------");
}

MQTT is connected, of course and processPackets() is called.

Everything works, when I change the feed from "test/#" to "test/1", for example.

Has someone made the same experience?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant