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 104 integers0-1
(88 integers prior SW 1.36){ "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": "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", "91": "DIFF3", "92": "N/A", "93": "N/A", "94": "N/A", "95": "N/A", "96": "N/A", "97": "N/A", "98": "N/A", "99": "N/A", "100": "N/A", "101": "N/A", "102": "N/A", "103": "distance sensor", }
{ "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.100/stm.cgi?mqtt=0*mqtt.ats.pl*1883*login*password*prefix*300*300*1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000*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
Last update: 2021-05-13