0

MQTT Library only works with debug enabled
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

MQTT Library only works with debug enabled

by hjf on Tue Apr 25, 2017 10:16 am

I'm using the library with several devices. I tried with a WIZ5500 based "NIC" (Ethernet2 lib), and with an ENC28J60 too (UIPEthernet library). The Adafruit MQTT library gives me the error "not authorized to connect", unless I enable debugging.
This has been posted in the forum before but there was no answer. Is there anything else to try?
I'm using an Arduino Uno. I do get warnings for low memory with the UIPEthernet library, but not with the Ethernet2 library. It does the same thing (not authorized error) with both libraries.

hjf
 
Posts: 2
Joined: Sun Apr 23, 2017 1:08 pm

Re: MQTT Library only works with debug enabled

by aurica123 on Wed Aug 30, 2017 2:10 pm

hello i use one esp8266node mcu and i use one code for adafruit library for mqtt server and not work
my error of the serial monitor arduino softuare {Connecting to jeg45
..
WiFi connected
IP address:
192.168.1.7
Connecting to MQTT... Not authorized to connect
Retrying MQTT connection in 5 seconds...
Not authorized to connect
Retrying MQTT connection in 5 seconds...
Not authorized to connect
Retrying MQTT connection in 5 seconds.}

plise help

aurica123
 
Posts: 1
Joined: Tue Aug 29, 2017 11:40 am

Re: MQTT Library only works with debug enabled

by bkw67 on Sat Jun 09, 2018 4:39 pm

aurica123,
Did you figure it out? I am having the same issue.

bkw67
 
Posts: 1
Joined: Sat Jun 09, 2018 3:47 pm

Please be positive and constructive with your questions and comments.