mirror of
https://github.com/eclipse/paho.mqtt-sn.embedded-c.git
synced 2025-12-13 07:26:52 +01:00
Update README
Add Tips for Debug Delete unused define Signed-off-by: tomoaki <tomoaki@tomy-tech.com>
This commit is contained in:
@@ -94,18 +94,15 @@ When **QoS-1** is **YES**, QoS-1 PUBLISH is available. All clients which send Qo
|
||||
When **PredefinedTopic** is **YES**, **Pre-definedTopicId**s specified by **PredefinedTopicList** are effective. This file defines Pre-definedTopics of the clients. In this file, ClientID,TopicName and TopicID are declared in CSV format.
|
||||
When **Forwarder** is **YES**, Forwarder Encapsulation Message is available. Connectable Forwarders must be declared by a **ClientsList** file.
|
||||
|
||||
|
||||
### ** How to monitor the gateway from remote. **
|
||||
|
||||
Uncomment line32 in MQTTSNGWDefined.h.
|
||||
|
||||
`//#define RINGBUFFER // print out Packets log into shared memory./"`
|
||||
````
|
||||
$ make
|
||||
$ make install
|
||||
$ make clean
|
||||
Change gateway.conf as follows:
|
||||
```
|
||||
# LOG
|
||||
ShearedMemory=YES;
|
||||
````
|
||||
restart the gateway.
|
||||
|
||||
Restart the gateway with sudo only once to create shared memories.
|
||||
|
||||
open ssh terminal and execute LogMonitor.
|
||||
|
||||
`$ ./MQTT-SNLogmonitor`
|
||||
@@ -113,4 +110,15 @@ open ssh terminal and execute LogMonitor.
|
||||
Now you can get the Log on your terminal.
|
||||
|
||||
|
||||
## ** Tips: **
|
||||
Uncomment the line 62, 63 in MQTTSNDefines.h then you can get more precise logs.
|
||||
```
|
||||
/*=================================
|
||||
* Log controls
|
||||
==================================*/
|
||||
//#define DEBUG // print out log for debug
|
||||
//#define DEBUG_NWSTACK // print out SensorNetwork log
|
||||
```
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -13,8 +13,6 @@
|
||||
* Contributors:
|
||||
* Tomoaki Yamaguchi - initial API and implementation and/or initial documentation
|
||||
**************************************************************************************/
|
||||
#define RINGBUFFER
|
||||
|
||||
#include "MQTTSNGWProcess.h"
|
||||
#include "MQTTSNGWLogmonitor.h"
|
||||
#include <stdio.h>
|
||||
|
||||
Reference in New Issue
Block a user