Skip to content

Silent Limit on the number of subscribed topics, callback ignored #219

@joihn

Description

@joihn

Env:
Esp8266, communication via TLS

Symptom:
When too many subscriber are registered, the last few one will never execute their callback.

reproducing
Subscribe to multiple topics (17 in my case) with this syntax

Adafruit_MQTT_Subscribe trigg1 = Adafruit_MQTT_Subscribe(&mqtt, "triggTopic1", MQTT_QOS_1);
trigg1.setCallback(foo);
mqtt.subscribe(&trigg1);
Adafruit_MQTT_Subscribe trigg2 = Adafruit_MQTT_Subscribe(&mqtt, "triggTopic2", MQTT_QOS_1);
trigg1.setCallback(bar);
mqtt.subscribe(&trigg2);

etc...
The last few subsriber will get ignored, silently (!!!!!) (they will never execute their callback, despite a successfull compilation, thus very confusing to debug )
There seems to be a silent hidden limit on the max. number of subscribed topics.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions