Skip to content

Commit 1c18e83

Browse files
committed
[DOCS] Document valueAsASubject option
#833
1 parent 90a7646 commit 1c18e83

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

docs/upload/advanced-configuration.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,23 @@ If you have no ntp server in your local network (included in the router) or not
3232
This is related to the `W: failed, ssl error code=54` error message, which indicate that the time of the esp is not correct.
3333

3434
You can know compile and upload to your board and the gateway should connect with TLS to your broker.
35+
36+
## Add the reveived "value" at the end of the topic
37+
For the gateways that publish a "value" parameter on the json (RF, IR...), it is possible to concatenate this parameter at the end of the topic.
38+
So as to activate this function you need to uncomment the line below in User_config.h
39+
40+
``` cpp
41+
//#define valueAsASubject true
42+
```
43+
44+
Per default you see the following data:
45+
```
46+
home/OpenMQTTGateway/SRFBtoMQTT {"raw":"2B660186042E00E7E5","value":"59365","delay":"1111","val_Thigh":"390","val_Tlow":"1070"}
47+
```
48+
49+
With the line uncommented you will see:
50+
```
51+
home/OpenMQTTGateway/SRFBtoMQTT/59365 {"raw":"2B660186042E00E7E5","value":"59365","delay":"1111","val_Thigh":"390","val_Tlow":"1070"}
52+
```
53+
54+
It can be usefull to avoid warning or errors on certain controllers.

0 commit comments

Comments
 (0)