TCG120-4_R1.3
–
May 2022
Page 37
purl=yyy
URL for XML/JSON HTTP Post to Server 1, where yyy is
a full path to php file
purl=212.25.45.120:30181/xampp/test/pushtest.php
purl2=yyy
URL for XML/JSON HTTP Post to Server 2, where yyy is
a full path to php file
purl=212.25.45.120:30181/xampp/test/pushtest.php
pper=x
XML/JSON HTTP Post period in seconds
(x is between 60 and 172800)
pper=600
–
will set Post period to 600 seconds
dk=xxx
XML/JSON HTTP Post key
–
xxx is up to 17 characters
mdata=x
Data format JSON/Plain text for MQTT Publish
–
0
JSON, 1 Plain text
mmode=x
Publish protocol, where x is 0 for unsecure and 1 for
TLS/SSL
muser=xxxx
Username authentication for MQTT, where xxxx is a
username
mpass=xxxx
Password authentication for MQTT, where xxxx is a
password
murl=yyy
URL for MQTT publish, where yyy is a path
murl=212.25.45.120
mport=yyyy
Port for MQTT publish, where yyyy is a port
mport=1883
mper=x
MQTT publish period in seconds
(x is between 60 and 172800)
mper=600
–
will set MQTT publish period to 600
seconds
save
Save all previous changes
(except relays’ one)
in the
FLASH memory.
As every save reflects the FLASH cycles (endurance),
this command should be used very carefully.
pper=120&save
–
will set Post period to 120 seconds
and save it
FIN
Terminate the session
Multiply commands are sent concatenated w
ith “&”.
The commands are sent in the answer on XML/JSON or CSV HTTP Posts. They are executed if
“Process Answer” is
enabled.
9.4.
File structures
For XML file structure please see Appendix A.
For JSON file structure please see Appendix B.
9.5.
MQTT
MQTT is a Client-Server publish/subscribe messaging transport protocol. It is lightweight, open, simple,
and designed so as to be easy to implement. MQTT is used in a wide variety of industries, such as
automotive, manufacturing, telecommunications, oil, gas and etc.
More about MQTT can be read at www.mqtt.org.
10.
Firmware update
TCG120-4
supports firmware update over the WEB interface and over the air.
For firmware update over the WEB interface please see 7.4.2. FW update.
For firmware update over the air (needs 4GLTE/3G/2G connection) please follow the steps below:
•
Upload the update file (.cod extension) on public HTTP server ;
Summary of Contents for TCG120-4
Page 1: ......
Page 46: ...TCG120 4_R1 3 May 2022 Page 46 Appendix C Fig 1 Fig 2...