0

MQT Subscription error - Not authorized
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

MQT Subscription error - Not authorized

by TomasBray on Wed Apr 25, 2018 8:51 am

Hi,

I've just connected a simple relay switch to a Wemos D1 mini using the 'RelayControlV2' code by ItKindaWorks on Github. It seems to be connecting to the server fine but I am getting the following error message in the live errors monitor:
2018-04-25 22:34:56 mqtt subscription error on /feeds/beckys-lamp: you are not authorized
I've double checked the AIO key and can't think what else could be wrong.

TomasBray
 
Posts: 2
Joined: Wed Apr 25, 2018 8:15 am

Re: MQT Subscription error - Not authorized

by abachman on Thu Apr 26, 2018 12:16 pm

Hi Tomas,


One thing to check is that you're including your username in the MQTT topic, that means if you're "tomasbray" on IO, the topic would be "tomasbray/feeds/beckys-lamp" rather than "/feeds/beckys-lamp". Also make sure there's not a leading slash: "tomasbray/feeds/beckys-lamp" but not "/tomasbray/feeds/beckys-lamp".


- adam

abachman
 
Posts: 228
Joined: Mon Feb 01, 2010 12:48 pm

Re: MQT Subscription error - Not authorized

by TomasBray on Fri Apr 27, 2018 9:39 pm

Brilliant!

Thanks Adam.

TomasBray
 
Posts: 2
Joined: Wed Apr 25, 2018 8:15 am

Please be positive and constructive with your questions and comments.