Fix of warning: comparison between signed and unsigned integer
expressions 


Set a null string to the client ID when it of CONNECT is empty.

Signed-off-by: tomoaki <tomoaki@tomy-tech.com>
This commit is contained in:
tomoaki
2017-09-21 15:59:40 +09:00
committed by tomoaki
parent 98c1ebae50
commit 4935d2aa86
8 changed files with 26 additions and 9 deletions

View File

@@ -16,6 +16,7 @@
#ifndef PUBLISHMANAGER_H_
#define PUBLISHMANAGER_H_
#include <time.h>
#include "LMqttsnClientApp.h"
#include "LTimer.h"
#include "LTopicTable.h"
@@ -42,7 +43,7 @@ typedef struct PubElement{
const char* topicName;
uint8_t* payload;
uint16_t payloadlen;
uint32_t sendUTC;
time_t sendUTC;
int (*callback)(void);
int retryCount;
int taskIndex;