Comments (2)
Hello,
Up there, I had kept .lwt_topic = "", BUT when I changed the .lwt_topic = "/lwt" (which is default too)
I got the unauthorization error while subscribing to a topic to MQTT server:
Here are the options I am using:
.client_id = "ESP32_Client", .username = "..............", //I have put it right Adafruit USER .password = ".......................................", //I have put it right Adafruit PASS .clean_session = 0, .keepalive = 120, .lwt_topic = "/lwt", // = "" for disable lwt, will don't care other options previously "/lwt" .lwt_msg = "offlines", .lwt_qos = 0, .lwt_retain = 0, .connected_cb = connected_cb, .disconnected_cb = disconnected_cb, //.reconnect_cb = reconnect_cb, .subscribe_cb = subscribe_cb, .publish_cb = publish_cb, .data_cb = data_cb
from esp32-mqtt.
I am getting the following UNAUTHORIZED CONNECTION on the log:
[MQTT INFO] Starting mqtt task [MQTT INFO] Resolve dns for domain: io.adafruit.com [MQTT INFO] Connecting to server 52.70.203.194:8883,45858 [MQTT INFO] Creating SSL object... [MQTT INFO] Start SSL connect.. [MQTT INFO] Connected! [MQTT INFO] Connected to server io.adafruit.com:8883 [MQTT INFO] Sending MQTT CONNECT message, type: 1, id: 0000 [MQTT INFO] Reading MQTT CONNECT response message [MQTT WARN] Connection refused, not authorized [MQTT INFO] Closing client socket [MQTT INFO] Client destroyed
from esp32-mqtt.
Related Issues (20)
- What does t MQTT_MSG_TYPE_PINGRESP mean? HOT 9
- Connection refuse, Unknown reason HOT 1
- Samsung's ARTIK Cloud connect error HOT 1
- not able to connect to hive mqtt HOT 3
- example fails compile, when fixed fails to execute properly HOT 1
- Compilation error - undeclared struct field "reconnect_cb" HOT 5
- Pending Subscription message is overwritten by Publish => subscribe callback is missed HOT 1
- esp32 as server broker
- MQTT cjson HOT 8
- mqtt_stop() sometimes does not work.
- Documentation for MQTT Library by tuanpmt HOT 1
- Offline Buffer issues trigger watchdog timer error
- Installing library in Eclipse environment
- Connection refused, not authorized HOT 9
- Mqtt_1 HOT 1
- lwt message is blank
- last will
- esp32 constant reboot HOT 1
- Link to new version is 404
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from esp32-mqtt.