Secure MQTT - 8883/8884

Hi, I would like to use secure MQTT connection. I tried many types but no one is going good…

My Configuration code:

mqtt: 
  broker: 192.168.1.20      #IP of my rasp 
  port: 8883        
  client_id: home-assistant-1 
  keepalive: 60
  username: xxx 
  password: xxxxx  
  protocol: 3.1

my MQTT Broker configuration:
20

47

My code in wemos (libraries: ESP8266WiFi.h, PubSubClient.h):

PIDTemp_modul.setServer(mqtt_server, 1883);

Please, help :slight_smile:

LAN connections don’t really need to be ‘secure’ unless you know you have people that are going to listen in on your wireless… If that’s the case you have bigger problems than this.

Also, are you compiling your own code via Arduino IDE (or similar)? Why not look into something like ESPEasy.

I am communicating but via WLAN (I assume that I am because I am using WiFi on Wemos D1 minis)

What is better in ESPEasy? :slight_smile:

WLAN or LAN, doesn’t matter. For either to be snooped an attacker would need access to your system or some serious time and effort.

Still, if you’re not having guests on your wifi and you’re using a proper password you don’t need to secure the local connections. Its just not necessary.

ESPEasy does all the over head for you. Is a precompiled firmware that allows you to connect in to your network. Its just a matter of a few changes in configuration and you’re up and running.

yep, I look on it (ESPEasy) but I am using mac (macos) and I dont find any solution to it…