HT20IoT-09
User’s
Manual
30
--HT2x-- - Date 2010-07-05, Time 15:49:46, T=25.06
, RH=45.96 %, DP=12.61
,
℃
℃
AH=10.62 g/m³, UserReg 1=inf, UserReg 2=inf, UserReg 3=inf, UserReg 4=inf, UserReg
5=inf, UserReg 6=inf, UserReg 7=inf, UserReg 8=inf, UserReg 9=inf, UserReg10=inf,
UserReg11=inf, UserReg12=inf
The first parameter of the published data is the device name
(--HT2x--), which can be modified via the website. After the hyphen there are
more parameters separated by a comma. The next two parameters are the
date and time set via the website as well. The next four parameters are
temperature (T), relative humidity (RH), calculated dew point (DP),
calculated absolute humidity (AH).
The next 12 parameters are user-defined values. The name of each quantity
and the register from which the value of a given quantity is read are set via
the website.
5.6.6.3. MQTT protocol configuration registers (for writing and reading)
Registers in the range of 5000 ... 5028 (16-bit registers) for MQTT configuration
Address Type
Range
Description
5000
readout
-
Connection status:
0xFFFF (or -1) - no connection
0x0000 - connection attempt
0x0001 - connection has been established.
5001
writing/reading B1: 1-254
B2: 0-254
The first and second byte of the IP address of the
MQTT broker: B1:B2
5002
writing/reading B3: 0-254
B4: 0-254
The third and fourth byte of the IP address of the
MQTT broker: B3:B4
5003
writing/reading 1-65534
Port number of MQTT broker
5004
writing/reading 1-3600
Data publication time on the server in seconds.
5005
writing/reading 0-1
Saving to non-volatile memory:
0 - do nothing,
1 – save changes.
(After setting 1 to register 4504, the value in this
register should after a while return to 0, indicating
that the record was made correctly.)
5006
writing/reading 0-1
Enabling or disabling MQTT support (connection
with a broker):
0 – off,
1 – on