mirror of
https://github.com/eclipse/paho.mqtt-sn.embedded-c.git
synced 2025-12-14 07:56:52 +01:00
Update: DISCONNECT (Issue #31) and others
Signed-off-by: tomoaki <tomoaki@tomy-tech.com>
This commit is contained in:
@@ -31,11 +31,6 @@ namespace MQTTSNGW
|
||||
/*=================================
|
||||
* Parameters
|
||||
==================================*/
|
||||
#define MQTTSNGW_CONFIG_DIRECTORY "./"
|
||||
|
||||
#define MQTTSNGW_CONFIG_FILE "gateway.conf"
|
||||
#define MQTTSNGW_CLIENT_LIST "clients.conf"
|
||||
|
||||
#define MQTTSNGW_MAX_TASK 10 // number of Tasks
|
||||
#define PROCESS_LOG_BUFFER_SIZE 16384 // Ring buffer size for Logs
|
||||
#define MQTTSNGW_PARAM_MAX 128 // Max length of config records.
|
||||
@@ -43,12 +38,7 @@ namespace MQTTSNGW
|
||||
/*=================================
|
||||
* Macros
|
||||
==================================*/
|
||||
#ifdef RINGBUFFER
|
||||
#define WRITELOG theProcess->putLog
|
||||
#else
|
||||
#define WRITELOG printf
|
||||
#endif
|
||||
|
||||
|
||||
/*=================================
|
||||
Class Process
|
||||
@@ -77,6 +67,7 @@ private:
|
||||
RingBuffer* _rb;
|
||||
Semaphore* _rbsem;
|
||||
Mutex _mt;
|
||||
int _log;
|
||||
char _rbdata[PROCESS_LOG_BUFFER_SIZE + 1];
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user