MQTT client¶
/stm.cgi?mqtt¶
Configure the MQTT client settings.
GET /stm.cgi?mqtt=A*B*C*D*E*F*G*H*I*J
A
determines whether certain flags are set, integer0-31
(5 bits 20, 21, .. ,24 sequentially for Enable MQTT, Enable authentication, Use TLS, Use LWT, Send by GSM modem)B
is the host of the MQTT server, stringC
is the port of the MQTT server, integerD
is the username for authentication, string up to 99 charactersE
is the password for authentication, string up to 199 charactersF
is a prefix - the part used in the topics used by LC to send and receive messages, stringG
is the period of sending data in seconds, integerH
is the Keep Alive parameter, integer-
I
determines which readings should be send periodically, chain of 113 integers0-1
(105 prior SW 1.49, 104 prior SW 1.46, 88 prior SW 1.36){ "0": "INPA1", "1": "INPA2", "2": "INPA3", "3": "INPA4", "4": "INPA5", "5": "INPA6", "7": "INPA1R", "8": "INPA2R", "9": "INPA3R", "10": "INPA4R", "11": "INPA5R", "12": "INPA6R", "16": "DS1", "17": "DS2", "18": "DS3", "19": "DS4", "20": "DS5", "21": "DS6", "57": "DS7", "58": "DS8", "6": "VCC", "13": "TEMP", "14": "T1", "15": "H1", "55": "P1", "22": "DIFF1", "23": "DIFF2", "91": "DIFF3", "113": "DIFF4", // added in SW 1.49 "114": "DIFF5", // added in SW 1.49 "115": "DIFF6", // added in SW 1.49 "103": "distance sensor", "104": "UPTIME", // added in SW 1.46 "35": "INPD1", "36": "INPD2", "37": "INPD3", "38": "INPD4", "39": "OUT0", "40": "OUT1", "41": "OUT2", "42": "OUT3", "43": "OUT4", "44": "OUT5", "45": "POWER1", "46": "POWER2", "47": "POWER3", "48": "POWER4", "120": "POWER5", // added in SW 1.49 "121": "POWER6", // added in SW 1.49 "49": "ENERGY1", "50": "ENERGY2", "51": "ENERGY3", "52": "ENERGY4", "122": "ENERGY5", // added in SW 1.49 "123": "ENERGY6", // added in SW 1.49 "59": "PM1.0", "53": "PM2.5", "60": "PM4.0", "54": "PM10.0", "56": "CO2/GMQ125", // changed in SW 1.49 "61": "m1", "62": "m2", "63": "m3", "64": "m4", "65": "m5", "66": "m6", "67": "m7", "68": "m8", "69": "m9", "70": "m10", "71": "m11", "72": "m12", "73": "m13", "74": "m14", "75": "m15", "76": "m16", "77": "m17", "78": "m18", "79": "m19", "80": "m20", "81": "m21", "82": "m22", "83": "m23", "84": "m24", "85": "m25", "86": "m26", "87": "m27", "88": "m28", "89": "m29", "90": "m30", "24": "duralux", "25": "duraluxTemperature", "26": "duraluxPvVolt", "27": "duraluxGridCurrent", "28": "duraluxGridVolt", "29": "duraluxGridFreq", "30": "duraluxWatt", "31": "duraluxGridZero", "32": "duraluxEnergy", "33": "duraluxTotalWorkHour", "34": "duraluxCurrentState", "105": "PWM0", // added in SW 1.49 "106": "PWM1", // added in SW 1.49 "107": "PWM2", // added in SW 1.49 "108": "PWM3", // added in SW 1.49 "109" : "PWM0 Duty", // added in SW 1.49 "110" : "PWM1 Duty", // added in SW 1.49 "111" : "PWM2 Duty", // added in SW 1.49 "112" : "PWM3 Duty", // added in SW 1.49 // other fields reserved for internal use "92": "event1", "93": "event2", "94": "event3", "95": "event4", "96": "event5", "97": "event6", "98": "event7", "99": "event8", "100": "INPT1", "101": "INPT2", "102": "BARCODE", "116": "Multibio R1", "117": "Multibio R2", "118": "Multibio R3", "119": "Multibio R4", }
{ "0": "INPA1", "1": "INPA2", "2": "INPA3", "3": "INPA4", "4": "INPA5", "5": "INPA6", "6": "VCC", "7": "INPA1R", "8": "INPA2R", "9": "INPA3R", "10": "INPA4R", "11": "INPA5R", "12": "INPA6R", "13": "TEMP", "14": "T1", "15": "H1", "16": "DS1", "17": "DS2", "18": "DS3", "19": "DS4", "20": "DS5", "21": "DS6", "22": "DIFF1", "23": "DIFF2", "24": "duralux", "25": "duraluxTemperature", "26": "duraluxPvVolt", "27": "duraluxGridCurrent", "28": "duraluxGridVolt", "29": "duraluxGridFreq", "30": "duraluxWatt", "31": "duraluxGridZero", "32": "duraluxEnergy", "33": "duraluxTotalWorkHour", "34": "duraluxCurrentState", "35": "INPD1", "36": "INPD2", "37": "INPD3", "38": "INPD4", "39": "OUT0", "40": "OUT1", "41": "OUT2", "42": "OUT3", "43": "OUT4", "44": "OUT5", "45": "POWER1", "46": "POWER2", "47": "POWER3", "48": "POWER4", "49": "ENERGY1", "50": "ENERGY2", "51": "ENERGY3", "52": "ENERGY4", "53": "PM2.5", "54": "PM10.0", "55": "P1", "56": "CO2", "57": "DS7", "58": "DS8", "59": "PM1.0", "60": "PM4.0", "61": "sdm1", "62": "sdm2", "63": "sdm3", "64": "sdm4", "65": "sdm5", "66": "sdm6", "67": "sdm7", "68": "sdm8", "69": "sdm9", "70": "sdm10", "71": "sdm11", "72": "sdm12", "73": "sdm13", "74": "sdm14", "75": "DIFF3", "76": "N/A", "77": "N/A", "78": "N/A", "79": "N/A", "80": "N/A", "81": "N/A", "82": "N/A", "83": "N/A", "84": "N/A", "85": "N/A", "86": "N/A", "87": "distance sensor", }
-
J
determines which readings should be send on change of state, chain of integers0-1
{ "0": "INPT1", "1": "INPT2", "2": "BARCODE", }
Example:
http://192.168.1.10/stm.cgi?mqtt=3*mqtt.ats.pl*1883*login*password*prefix*300*300*000000100000010010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000*000
GET /stm.cgi?mqtt=A*B*C*D*E*F*G*H*I
A
determines whether certain flags are set, integer0-3
(2 bits 20, 21 sequentially for Enable MQTT, Enable authentication)B
is the host of the MQTT server, stringC
is the port of the MQTT server, integerD
is the username for authentication, stringE
is the password for authentication, stringF
is a prefix - the part used in the topics used by LC to send and receive messages, stringG
is the period of sending data in seconds, integerH
is the Keep Alive parameter, integerI
determines which readings should be send periodically, chain of 76 integers0-1
{ "0": "INPA1", "1": "INPA2", "2": "INPA3", "3": "INPA4", "4": "INPA5", "5": "INPA6", "6": "VCC", "7": "INPA1R", "8": "INPA2R", "9": "INPA3R", "10": "INPA4R", "11": "INPA5R", "12": "INPA6R", "13": "TEMP", "14": "T1", "15": "H1", "16": "DS1", "17": "DS2", "18": "DS3", "19": "DS4", "20": "DS5", "21": "DS6", "22": "DIFF1", "23": "DIFF2", "24": "duralux", "25": "duraluxTemperature", "26": "duraluxPvVolt", "27": "duraluxGridCurrent", "28": "duraluxGridVolt", "29": "duraluxGridFreq", "30": "duraluxWatt", "31": "duraluxGridZero", "32": "duraluxEnergy", "33": "duraluxTotalWorkHour", "34": "duraluxCurrentState", "35": "INPD1", "36": "INPD2", "37": "INPD3", "38": "INPD4", "39": "OUT0", "40": "OUT1", "41": "OUT2", "42": "OUT3", "43": "OUT4", "44": "OUT5", "45": "POWER1", "46": "POWER2", "47": "POWER3", "48": "POWER4", "49": "ENERGY1", "50": "ENERGY2", "51": "ENERGY3", "52": "ENERGY4", "53": "PM2.5", "54": "PM10.0", "55": "P1", "56": "CO2", "57": "DS7", "58": "DS8", "59": "PM1.0", "60": "PM4.0", "61": "sdm1", "62": "sdm2", "63": "sdm3", "64": "sdm4", "65": "sdm5", "66": "sdm6", "67": "sdm7", "68": "sdm8", "69": "sdm9", "70": "sdm10", "71": "sdm11", "72": "sdm12", "73": "sdm13", "74": "sdm14", "75": "DIFF3", }
Example:
http://192.168.1.100/stm.cgi?mqtt=0*mqtt.ats.pl*1883*login*password*prefix*300*300*1000000000000000000000000000000000000000000000000000000000000000000000000000