微网控制器设备列表,控制器若无此设备不上抛消息

This commit is contained in:
cdyong 2015-12-08 00:40:39 +00:00
parent 39c252f82b
commit 50dc109b7b
2 changed files with 4 additions and 0 deletions

View File

@ -2,6 +2,7 @@
#include "TinyMessage.h" #include "TinyMessage.h"
#include "Security\RC4.h" #include "Security\RC4.h"
#include "Device.h"
#define MSG_DEBUG DEBUG #define MSG_DEBUG DEBUG
//#define MSG_DEBUG 0 //#define MSG_DEBUG 0

View File

@ -4,6 +4,7 @@
#include "Sys.h" #include "Sys.h"
#include "Net\ITransport.h" #include "Net\ITransport.h"
#include "Stream.h" #include "Stream.h"
#include "Device.h"
#include "Message\Controller.h" #include "Message\Controller.h"
@ -138,6 +139,8 @@ public:
byte Mode; // 接收模式。0只收自己1接收自己和广播2接收所有。默认0 byte Mode; // 接收模式。0只收自己1接收自己和广播2接收所有。默认0
uint Interval; // 消息队列发送间隔ms uint Interval; // 消息队列发送间隔ms
int Timeout; // 消息队列发送消息的默认超时时间ms。如果不需要超时重发那么直接设置为-1 int Timeout; // 消息队列发送消息的默认超时时间ms。如果不需要超时重发那么直接设置为-1
TArray<Device*>* Devices; //设备列表,控制器若无此设备不上抛消息
TinyController(); TinyController();
virtual ~TinyController(); virtual ~TinyController();