MQTT Import failed to connect

Moderators: grovkillen, TD-er, Stuntteam

Post Reply
Message
Author
sudarshan.tshn
Normal user
Posts: 3
Joined: 10 Nov 2019, 08:16

MQTT Import failed to connect

#1 Post by sudarshan.tshn » 28 Jan 2020, 19:18

I have established a connection with cloudmqtt and can send messages to cloudmqtt as well but cant find any procedure to send commands from cloudmqtt to my esp. Actually i have a website deployed at heroku and i want to control my esp from there. Please help me out to send commands to my esp and carry out set of instructions.

Code: Select all

{"System":{
"Build":20104,
"Git Build":"mega-20191208",
"System Libraries":"ESP82xx Core bc204a9b, NONOS SDK 2.2.2-dev(38a443e), LWIP: 2.1.2 PUYA support",
"Plugins":46,
"Plugin description":" [Normal]",
"Local Time":"2020-01-28 23:46:01",
"Unit Number":0,
"Unit Name":"AMD-Mech",
"Uptime":111,
"Last Boot Cause":"Manual reboot",
"Reset Reason":"Software/System restart",
"Load":12.40,
"Load LC":3786,
"CPU Eco Mode":"false",
"Heap Max Free Block":11200,
"Heap Fragmentation":18,
"Free RAM":13656
},
"WiFi":{
"Hostname":"AMD-Mech-0",
"IP Config":"DHCP",
"IP Address":"192.168.0.104",
"IP Subnet":"255.255.255.0",
"Gateway":"192.168.0.1",
"STA MAC":"CC:50:E3:71:19:5A",
"DNS 1":"192.168.0.1",
"DNS 2":"(IP unset)",
"SSID":"Northern Lights",
"BSSID":"58:D9:D5:FD:67:F8",
"Channel":8,
"Connected msec":6681093,
"Last Disconnect Reason":1,
"Last Disconnect Reason str":"(1) Unspecified",
"Number Reconnects":0,
"Force WiFi B/G":"false",
"Restart WiFi Lost Conn":"false",
"Force WiFi No Sleep":"false",
"Periodical send Gratuitous ARP":"false",
"Connection Failure Threshold":0,
"RSSI":-32
},
"Sensors":[
{
"DataAcquisition": [
{"Controller":1,
"IDX":0,
"Enabled":"false"
},
{"Controller":2,
"IDX":0,
"Enabled":"false"
},
{"Controller":3,
"IDX":0,
"Enabled":"false"
}],
"TaskInterval":5,
"Type":"Display - OLED SSD1306/SH1106 Framed",
"TaskName":"displayOLED",
"TaskDeviceNumber":36,
"TaskEnabled":"true",
"TaskNumber":1
},
{
"TaskValues": [
{"ValueNumber":1,
"Name":"Temperature",
"NrDecimals":2,
"Value":32.26
},
{"ValueNumber":2,
"Name":"Humidity",
"NrDecimals":2,
"Value":59.82
},
{"ValueNumber":3,
"Name":"Pressure",
"NrDecimals":2,
"Value":1016.59
}],
"DataAcquisition": [
{"Controller":1,
"IDX":0,
"Enabled":"true"
},
{"Controller":2,
"IDX":0,
"Enabled":"false"
},
{"Controller":3,
"IDX":0,
"Enabled":"false"
}],
"TaskInterval":5,
"Type":"Environment - BMx280",
"TaskName":"bme280",
"TaskDeviceNumber":28,
"TaskEnabled":"true",
"TaskNumber":2
},
{
"TaskValues": [
{"ValueNumber":1,
"Name":"cmdMQTT",
"NrDecimals":2,
"Value":0.00
},
{"ValueNumber":2,
"Name":"Value2",
"NrDecimals":2,
"Value":0.00
},
{"ValueNumber":3,
"Name":"Value3",
"NrDecimals":2,
"Value":0.00
},
{"ValueNumber":4,
"Name":"Value4",
"NrDecimals":2,
"Value":0.00
}],
"DataAcquisition": [
{"Controller":1,
"IDX":0,
"Enabled":"false"
},
{"Controller":2,
"IDX":0,
"Enabled":"false"
},
{"Controller":3,
"IDX":0,
"Enabled":"false"
}],
"TaskInterval":60,
"Type":"Generic - MQTT Import",
"TaskName":"sniff",
"TaskDeviceNumber":37,
"TaskEnabled":"false",
"TaskNumber":3
}
],
"TTL":5000
}


If i enable MQTT Import then it gives this

Code: Select all

30701: BME280 : Temperature: 30.41
30701: BME280 : Humidity: 61.73
30702: BME280 : Barometric Pressure: 1014.15
30725: MQTT : Intentional reconnect
31091: MQTT : Connected to broker with client ID: AMD-Mech
31094: Subscribed to: AMD-Mech/#
31100: EVENT: bme280#Temperature=30.63
31252: IMPT : Failed to connect to MQTT broker - attempt 1
31859: IMPT : Failed to connect to MQTT broker - attempt 2
32467: IMPT : Failed to connect to MQTT broker - attempt 3
33338: IMPT : Failed to connect to MQTT broker - attempt 1
33947: IMPT : Failed to connect to MQTT broker - attempt 2
34555: IMPT : Failed to connect to MQTT broker - attempt 3
35093: EVENT: bme280#Humidity=64.67
35252: IMPT : Failed to connect to MQTT broker - attempt 1
35860: IMPT : Failed to connect to MQTT broker - attempt 2
49951: IMPT : Failed to connect to MQTT broker - attempt 2
50560: IMPT : Failed to connect to MQTT broker - attempt 3
51066: BME280: dew point 22.25C
51100: EVENT: bme280#Pressure=1016.15
51245: IMPT : Failed to connect to MQTT broker - attempt 1
51854: IMPT : Failed to connect to MQTT broker - attempt 2
52461: IMPT : Failed to connect to MQTT broker - attempt 3
53332: IMPT : Failed to connect to MQTT broker - attempt 1
53942: IMPT : Failed to connect to MQTT broker - attempt 2
54551: IMPT : Failed to connect to MQTT broker - attempt 3
55076: BME280 : Address: 0x76
55077: BME280 : Temperature: 30.38
55077: BME280 : Humidity: 61.81
55078: BME280 : Barometric Pressure: 1014.16
55098: MQTT : Extra processMQTTdelayQueue()
55106: EVENT: MQTT#Connected
55132: EVENT: Clock#Time=Wed,06:22
55273: IMPT : Failed to connect to MQTT broker - attempt 1
55882: IMPT : Failed to connect to MQTT broker - attempt 2
56490: IMPT : Failed to connect to MQTT broker - attempt 3

Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests