Adafruit_MQTT_Library | Arduino library for MQTT support
kandi X-RAY | Adafruit_MQTT_Library Summary
kandi X-RAY | Adafruit_MQTT_Library Summary
Arduino library for MQTT support, including access to Adafruit IO. Works with the Adafruit FONA, Arduino Yun, ESP8266 Arduino platforms, and anything that supports Arduino's Client interface (like Ethernet shield). See included examples for how to use the library to access an MQTT service to publish and subscribe to feeds. Note that this does not support the full MQTT spec but is intended to support enough for QoS 0 and 1 publishing.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of Adafruit_MQTT_Library
Adafruit_MQTT_Library Key Features
Adafruit_MQTT_Library Examples and Code Snippets
Community Discussions
Trending Discussions on Adafruit_MQTT_Library
QUESTION
I am breaking into making my own IoT tech and am using an ESP8266 with C/C++. I have set up a program which allows me to toggle a relay using Google Assistant through gbridge.io. I have it subscribed using MQTT to gbridge which tells it when to toggle the switch. Unfortunately I am very new to dealing with network related things, so I this probably is worded incorrectly. It listens (i think is the right word) to port 1883. I am using this method as I don't want to open a port on my home router. By listening to port 1883, is there any way that my router is exposed or network vulnerable? This code comes from the Adafruit MQTT Library Examples.
...ANSWER
Answered 2019-Dec-31 at 01:05Port 1883 is commonly used for unsecured MQTT. This has nothing to do with your router or network being vulnerable. What it means is:
- you can't be sure that the MQTT server you connected to is the one you meant to
- an intermediate party can eavesdrop on your MQTT communication
When you run MQTT over SSL, SSL will verify that the connection is encrypted using a certificate belonging to the domain name that you were trying to connect to. The two ends will also encrypt all traffic so that an observing party will be unable to eavesdrop.
MQTT over SSL is commonly run on port 8883.
None of this compromises your network or endangers your router. It only affects the communication between the MQTT client and broker.
Your MQTT client is not listening on port 1883 - it's connecting to port 1883 on the broker. The broker is the one listening on port 1883 - that's why you don't have to open a port on your router.
In the code you quoted above, you'd need use WiFIClientSecure
instead of WiFiClient
. You'd also need to provide a certificate or fingerprint for the server you're connecting to. But that's a different question from the one you asked; if you need help with it that would belong in a separate post.
QUESTION
I want to establish a TLS connection from ESP8266 to a mosquitto MQTT Server.
I'm using the Adafruit example INO with WiFiClientSecure, which successfully connects to my Wifi works fine with other MQTT Servers (e.g. iot.eclipse.org:8883)
Just when I'm trying to connect to my own mosquitto instance, it fail In the mosquitto log shows:
OpenSSL Error: error:1408A10B:SSL routines:SSL3_GET_CLIENT_HELLO:wrong version number
My mosquitto.conf looks like this
...ANSWER
Answered 2017-Oct-15 at 07:09Looking at this question asked today it seems you may have to specify a tls_version
after all to get things to work
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install Adafruit_MQTT_Library
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page