addSubscription method

void addSubscription (
  1. String topic,
  2. MqttQos qos
)

Adds a new subscription to the collection of subscriptions.

Implementation

void addSubscription(String topic, MqttQos qos) {
  subscriptions[topic] = qos;
}