stefanbode / Sonoff-Tasmota

Provide ESP8266 based itead Sonoff with Web, MQTT and OTA firmware using Arduino IDE, enhanced with I2C options
GNU General Public License v3.0
126 stars 40 forks source link

MQT: TLS connection error: 0 #217

Closed TonyPeperoni closed 4 years ago

TonyPeperoni commented 4 years ago

PROBLEM DESCRIPTION

I am using Stefan Bodes Bin file 7.0.0.3 stb-1.19(tasmota) for its Shutter function and I am getting error:

MQT: TLS connection error: 0

REQUESTED INFORMATION

I am assuming that the bin file is compiled with TLS support? Is that correct? I read that it can not be turned of. Is that correct? Is there a version without TLS ( I am not using TLS )

- [ ] If using rules, provide the output of this command: `Backlog Rule1; Rule2; Rule3`:

Rules output here:

n.a.

- [ ] Provide the output of this command: `Status 0`:

STATUS 0 output here:

18:55:43 RSL: stat/shelly25shutter/STATUS5 = {"StatusNET":{"Hostname":"shelly25shutter","IPAddress":"192.168.1.54","Gateway":"192.168.1.1","Subnetmask":"255.255.255.0","DNSServer":"192.168.1.1","Mac":"C8:2B:96:11:32:94","Webserver":2,"WifiConfig":4}} 18:55:43 RSL: stat/shelly25shutter/STATUS6 = {"StatusMQT":{"MqttHost":"192.168.1.4","MqttPort":1883,"MqttClientMask":"DVES%06X","MqttClient":"DVES_113294","MqttUser":"ton","MqttCount":0,"MAX_PACKET_SIZE":1000,"KEEPALIVE":30}} 18:55:43 RSL: stat/shelly25shutter/STATUS7 = {"StatusTIM":{"UTC":"Wed Mar 04 17:55:43 2020","Local":"Wed Mar 04 18:55:43 2020","StartDST":"Sun Mar 29 02:00:00 2020","EndDST":"Sun Oct 25 03:00:00 2020","Timezone":"+01:00","Sunrise":"07:25","Sunset":"18:38"}} 18:55:43 RSL: stat/shelly25shutter/STATUS9 = {"StatusPTH":{"PowerDelta":0,"PowerLow":0,"PowerHigh":0,"VoltageLow":0,"VoltageHigh":0,"CurrentLow":0,"CurrentHigh":0}} 18:55:43 RSL: stat/shelly25shutter/STATUS10 = {"StatusSNS":{"Time":"2020-03-04T18:55:43","Switch1":"OFF","Switch2":"OFF","ANALOG":{"Temperature":37.7},"ENERGY":{"TotalStartTime":"2020-01-19T11:41:29","Total":0.000,"Yesterday":0.000,"Today":0.000,"Power":[0,0],"ApparentPower":[0,0],"ReactivePower":[0,0],"Factor":[0.00,0.00],"Voltage":0,"Current":[0.000,0.000]},"Shutter1":{"Position":100,"direction":0},"TempUnit":"C"}} 18:55:43 RSL: stat/shelly25shutter/STATUS11 = {"StatusSTS":{"Time":"2020-03-04T18:55:43","Uptime":"0T00:32:52","UptimeSec":1972,"Heap":22,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":0,"POWER1":"OFF","POWER2":"OFF","Wifi":{"AP":2,"SSId":"bblokhut","BSSId":"04:62:73:0E:19:10","Channel":1,"RSSI":58,"LinkCount":1,"Downtime":"0T00:00:06","Heap":22888}}} 18:55:48 MQT: Attempting connection...

- [ ] Provide the output of the Console log output when you experience your issue; if applicable:
  _(Please use_ `weblog 4` _for more debug information)_

Console output here: weblog 4 18:56:40 RSL: stat/shelly25shutter/RESULT = {"WebLog":4} 18:56:41 CFG: Saved to flash at F7, Count 63, Bytes 4096 18:56:41 ADE: 5894220, 4475, [1773, -28, 622, -55], [1773, -6, 622, -9] 18:56:41 ADE: U 5894220, C 4475, I 0 + 0 = 0, P 0 + 0 = 0 18:56:42 ADE: 5900050, 4476, [1773, 39, 623, -10], [1773, 6, 623, -3] 18:56:42 ADE: U 5900050, C 4476, I 0 + 0 = 0, P 0 + 0 = 0



### TO REPRODUCE
_Steps to reproduce the behavior:_

### EXPECTED BEHAVIOUR
_A clear and concise description of what you expected to happen._
Shelly 2.5 device should establish mqtt connection with Mosquitto Server, but shows TLS error in stead.

### SCREENSHOTS
_If applicable, add screenshots to help explain your problem._

### ADDITIONAL CONTEXT
_Add any other context about the problem here._

**(Please, remember to close the issue when the problem has been addressed)**
TonyPeperoni commented 4 years ago

I solved the issue. I created a Binary with Shutter, without TLS using Tasmocompiler : TasmoCompiler: https://gitpod.io/#https://github.com/benzino77/tasmocompiler