- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have not been able to fix the error "MQTT connection failed with error code 0x8060009 ..."
I am implementing the mtb-example-anycloud-mqtt-client with the Mosquitto broker in MQTTS mode. I have tried it from a Raspberry Pi 3B +, Jetson nano, and an Ubuntu PC. No positive results.
If there is any way to implement it in non-secure mode that would also be helpful
I followed the instructions on Github .. I have created the keys and the TLS / SSL certificates. I have also adjusted the mosquitto.conf file as follows:
# Place your local configuration in /etc/mosquitto/conf.d/
#
# A full description of the configuration file is at
# /usr/share/doc/mosquitto/examples/mosquitto.conf.gz
pid_file /run/mosquitto/mosquitto.pid
persistence true
persistence_location / var / lib / mosquitto /
log_dest file /var/log/mosquitto/mosquitto.log
# Config file for mosquitto
connection_messages true
per_listener_settings true
listener 8883
require_certificate true
use_identity_as_username true
allow_anonymous false
# SSL settings
cafile /etc/mosquitto/ca_certificates/ca.crt
keyfile /etc/mosquitto/certs/server.key
certfile /etc/mosquitto/certs/server.crt
#include_dir /etc/mosquitto/conf.d
password_file / etc / mosquitto / passwd
allow_anonymous false
listener 1883
Help me ... I really want to use Mosquitto in my home project I am using the CY8CKIT-062-WIFI-BT
I have the Modus ToolBox IDE updated in Version 2.31
Solved! Go to Solution.
- Labels:
-
ModusToolbox AnyCloud SDK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Have you tried with some other broker like AWS? Is the issue happening there as well? If Mosquitto broker is not a hard requirement, please try this with AWS broker.
Thanks
Aditi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Have you done any changes to the default example?
Thanks
Aditi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I haven't modified the code, I put entered the WiFi data (SSID, Password), the broker's password and user, and the formatted certificates SSL
".......................................... \ n" \
All following the instructions in the document's .md file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Have you tried with some other broker like AWS? Is the issue happening there as well? If Mosquitto broker is not a hard requirement, please try this with AWS broker.
Thanks
Aditi