MQTT client¶
/stm.cgi?mqtt¶
Configure the MQTT client settings.
GET /stm.cgi?mqtt=A*B*C*D*E*F*G*H*I*J
-
Adetermines whether certain flags are setinteger
0-31(5 bits 20, 21, .. ,24 sequentially for Enable MQTT, Enable authentication, Use TLS, Use LWT, Send by GSM modem)integer
0-15(4 bits 20, 21, .. ,23 sequentially for Enable MQTT, Enable authentication, Use TLS, Use LWT)integer
0-3(2 bits 20, 21 sequentially for Enable MQTT, Enable authentication) -
Bis the host of the MQTT server, string Cis the port of the MQTT server, integer-
Dis the username for authenticationstring up to 99 characters
string up to 63 characters
string up to 31 characters
-
Eis the password for authenticationstring up to 199 characters
string up to 63 characters
string up to 31 characters
-
Fis a prefix - the initial fragment of topics used by LK to send and receive messagesstring up to 32 characters
string up to 14 characters
-
Gis the period of sending data in seconds, integer His the Keep Alive parameter, integer-
Idetermines which readings should be send periodicallychain of 113 integers
0-1{ "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 HW 3.5+ SW 1.49d "114": "DIFF5", // added in HW 3.5+ SW 1.49d "115": "DIFF6", // added in HW 3.5+ SW 1.49d "103": "distance sensor", "104": "UPTIME", // added in HW 3.5+ 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 HW 3.5+ SW 1.49d "121": "POWER6", // added in HW 3.5+ SW 1.49d "49": "ENERGY1", "50": "ENERGY2", "51": "ENERGY3", "52": "ENERGY4", "122": "ENERGY5", // added in HW 3.5+ SW 1.49d "123": "ENERGY6", // added in HW 3.5+ SW 1.49d "59": "PM1.0", "53": "PM2.5", "60": "PM4.0", "54": "PM10.0", "56": "CO2/GMQ125", // changed in HW 3.5+ SW 1.49d (reading from the GMQ125 sensor) "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 HW 3.5+ SW 1.49d "106": "PWM1", // added in HW 3.5+ SW 1.49d "107": "PWM2", // added in HW 3.5+ SW 1.49d "108": "PWM3", // added in HW 3.5+ SW 1.49d "109" : "PWM0 Duty", // added in HW 3.5+ SW 1.49d "110" : "PWM1 Duty", // added in HW 3.5+ SW 1.49d "111" : "PWM2 Duty", // added in HW 3.5+ SW 1.49d "112" : "PWM3 Duty", // added in HW 3.5+ SW 1.49d // 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", }chain of 88 integers
0-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", "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", } -
Jdetermines which readings should be send on change of state, chain of integers0-1{ "0": "INPT1", "1": "INPT2", "2": "BARCODE", }Added in HW 3.5+ SW 1.21
Example:
http://192.168.1.10/stm.cgi?mqtt=3*mqtt.ats.pl*1883*login*password*prefix*300*300*000000100000010010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000*000