Copyright © https://mongoose-os.com

Mongoose OS Forum

frame

MQTT automatic wildcard subscription

Hi Folks,

MQTT question.

Is there a way to disable wildcard subscription? I have only set up subscription for commands, but commands/# turns up too at boot time, after MQTT CONNACK.

[Sep 11 11:26:24.657] mgos_mqtt_ev         MQTT TCP connect ok (0)
[Sep 11 11:26:24.735] mgos_mqtt_ev         MQTT CONNACK 0
[Sep 11 11:26:24.735] do_subscribe         Subscribing to 'env/device/commands/#'
[Sep 11 11:26:24.772] do_subscribe         Subscribing to 'env/device/commands'
[Sep 11 11:26:24.806] mgos_mqtt_ev         MQTT Disconnect

Our customer tells us that their AWS policy is set up to prohibit wildcard subscriptions. (Hence, the MQTT Disconnect), and they are not able to be flexible about it.

Thankyou for any suggestions or help!!!

Comments

Sign In or Register to comment.