eclipse / paho.mqtt-sn.embedded-c

Paho C MQTT-SN gateway and libraries for embedded systems. Paho is an Eclipse IoT project.
https://eclipse.org/paho
Other
315 stars 178 forks source link

How to close logs in gateway #158

Closed jhx2002 closed 5 years ago

jhx2002 commented 5 years ago

How to close logs, such as:

20190704 181949.559   PUBLISH     20CC  <---  vehichle_control_exe                0C 0C 00 00 02 20 CC 2D 37 31 36 35
20190704 181949.559   PUBLISH           ===>  vehichle_control_exe                30 1B 00 14 2F 73 65 6E 73 6F 72 2F 61 6E 67 75 6C 61 72 2F 64 61 74 61 2D 37 31 36 35

20190704 181949.568   PUBLISH     20CD  <---  vehichle_control_exe                08 0C 00 00 01 20 CD 30
20190704 181949.568   PUBLISH           ===>  vehichle_control_exe                30 15 00 12 2F 73 65 6E 73 6F 72 2F 73 70 65 65 64 2F 64 61 74 61 30
ty4tw commented 5 years ago

Hi,

If you don't need logs, redirect the stdout to /dev/null, then all logs are disposed.

ty4tw commented 5 years ago

Close because it has not been discussed for a long time.