I've issue with one of my Remote Wemos connected to my Mosquitto server via internet:
Wemos -- Internet box A -- internet -- Internet box B -- Mosquitto_Server
I open properly 1883 TCP port on Box B (online check is ok) to forward MQTT traffic to mosquitto
On Wemos, I got the following log:
1661730091: MQTT : Intentional reconnect
1661730631: MQTT : Broker C005 connection failed (180415/0)
1661738216: MQTT : Intentional reconnect
1661738353: MQTT : Broker C005 connection failed (180416/0)
Wemos details:
Code: Select all
Unit Number: 0
Local Time: 2020-08-04 19:08:38
Uptime: 19 days 5 hours 43 minutes
Load: 18.57% (LC=2643)
CPU Eco Mode: false
Free RAM: 15168 (34568 - )
Free Stack: 3664 (3824 - )
Heap Max Free Block: 14440
Heap Fragmentation: 5%
Boot: Cold boot (0)
Reset Reason: External System
Last Task: Background Task
SW WD count: 0
Network ❔
Wifi: 802.11N (RSSI -83 dB)
IP Config: Static
IP / Subnet: 192.168.1.9 / 255.255.255.0
Gateway: 192.168.1.1
Client IP: 192.168.1.8
DNS: 1.1.1.1 / (IP unset)
Allowed IP Range: 192.168.1.0 - 192.168.1.255
STA MAC: D8:BF:C0:C7:59:C2
AP MAC: DA:BF:C0:C7:59:C2
SSID: ARBA-NEIGE (30:7C:B2:82:4D:86)
Channel: 6
Connected: 15d21h11m
Last Disconnect Reason: (2) Auth expire
Number Reconnects: 2
WiFi Settings
Force WiFi B/G: false
Restart WiFi Lost Conn: false
Force WiFi No Sleep: false
Periodical send Gratuitous ARP: false
Connection Failure Threshold: 0
Firmware
Build:⋄ 20108 - Mega
System Libraries:⋄ ESP82xx Core a5432625, NONOS SDK 2.2.2-dev(38a443e), LWIP: 2.1.2 PUYA support
Git Build:⋄ mega-20200703
Plugin Count:⋄ 46 [Normal]
Build Origin: Travis
Build Time:⋄ Jul 3 2020 11:44:07
Binary Filename:⋄ ESP_Easy_mega_20200703_normal_ESP8266_4M1M
Build Platform:⋄ Linux-5.0.0-1031-gcp-x86_64-with-glibc2.2.5
Git HEAD:⋄ HEAD
System Status
Syslog Log Level: None
Serial Log Level: Info
Web Log Level: None
ESP Board
ESP Chip ID: 13064642 (0xC759C2)
ESP Chip Frequency: 80 MHz
ESP Board Name: PLATFORMIO_ESP12E
Storage
Flash Chip ID: Vendor: 0x68 Device: 0x4016
Flash Chip Real Size: 4096 kB
Flash IDE Size: 4096 kB
Flash IDE Speed: 40 MHz
Flash IDE Mode: DIO
Flash Writes: 23 daily / 110 boot
Sketch Size: 842 kB (2228 kB free)
Max. OTA Sketch Size: 1019 kB (1044464 bytes)
OTA possible: true
OTA 2-step Needed: false
SPIFFS Size: 934 kB (844 kB free)
Page size: 256
Block size: 8192
Number of blocks: 116
Maximum open files: 5
Maximum path length: 32
Code: Select all
1 ✔ Environment - DS18b20 Frigo_3 28-d9-d0-61-1-0-0-a6
❶
GPIO-5
Temperature:
19.06
Edit 2 ✔ Environment - DS18b20 Frigo_2 28-1b-81-c7-1-0-0-af
❶
GPIO-5
Temperature:
19.50
Edit 3 ✔ Environment - DS18b20 Frigo_1 28-97-e6-5e-1-0-0-a
❶
GPIO-5
Temperature:
17.06
Edit 4 ✔ Environment - DS18b20 Congélateur_1 28-8f-ba-79-a2-0-3-42
❶
GPIO-5
Temperature:
-11.69
Edit 5 ✔ Environment - DS18b20 Temp_exterieure 28-73-e7-61-1-0-0-e0
❶
GPIO-13
Temperature:
16.19
Edit 6 ✔ Environment - DS18b20 Chaudière_Sortie 28-32-de-61-1-0-0-d5
❶
GPIO-13
Temperature:
20.69
Edit 7 ✔ Environment - DS18b20 Congélateur_Bahut 28-7-c-79-a2-0-3-da
❶
GPIO-12
Temperature:
-36.88
Edit 8 ✔ Environment - DS18b20 Congélateur_2 28-e1-c1-79-a2-0-3-8f
❶
GPIO-14
Temperature:
18.69
Add 9
Add 10
Add 11
Edit 12 ✔ Generic - System Info SysInfo
❶
uptime:
27712.00
rssi:
-89.00
load:
19.84
:
0.00
on mosquitto, I see the following log:
1596560608: New connection from 2.7.250.177 on port 1883.
1596560608: Sending CONNACK to 2.7.250.177 (0, 5)
1596560609: New connection from 2.7.250.177 on port 1883.
1596560609: Sending CONNACK to 2.7.250.177 (0, 5)
1596560609: New connection from 2.7.250.177 on port 1883.
1596560609: Sending CONNACK to 2.7.250.177 (0, 5)
1596560619: New connection from 2.7.250.177 on port 1883.
...
mosquitto.conf:
Code: Select all
persistence true
persistence_location /mosquitto/data/
log_dest file /mosquitto/log/mosquitto.log
password_file /mosquitto/config/mosquitto.passwd
allow_anonymous true
log_type all
I don't have this problem with others Wemos using older build and MQTT.
any idea ?