Difference between revisions of "Sensor Hub MCU/WISEAgent"
From ESS-WIKI
Fred.chang (talk | contribs) |
Fred.chang (talk | contribs) |
||
Line 1: | Line 1: | ||
− | [[Sensor Hub MCU/WISEAgent|WiseAgentLite]] is a lite agent library to adapt to a poor performance platform. | + | [[Sensor Hub MCU/WISEAgent|WiseAgentLite]] is a lite agent library to adapt to a poor performance platform. it is seperated into two layers, RMM layer and MQTT layer. |
+ | The RMM layer includes the general protocol with RMM server. The MQTT layer is a abstract layer, it is a interface of MQTT on different platform. | ||
==Architecture== | ==Architecture== | ||
WiseAgentLite only includes the blue block. The MQTT interface must be ported to adapt to different MCU. | WiseAgentLite only includes the blue block. The MQTT interface must be ported to adapt to different MCU. | ||
+ | |||
==Functions== | ==Functions== |
Revision as of 07:47, 15 February 2016
WiseAgentLite is a lite agent library to adapt to a poor performance platform. it is seperated into two layers, RMM layer and MQTT layer. The RMM layer includes the general protocol with RMM server. The MQTT layer is a abstract layer, it is a interface of MQTT on different platform.
Contents
Architecture
WiseAgentLite only includes the blue block. The MQTT interface must be ported to adapt to different MCU.
Functions
- List
- void WiseAgent_Init(char *ip, _u8 *mac);
- int WiseAgent_Open(char *server_url, char *product_name);
- void WiseAgent_Read();
- void WiseAgent_RegisterSensor(char *deviceName, char *deviceMac, WiseAgentInfoSpec *infospec, int count);
- void WiseAgent_Write(char *deviceMac, WiseAgentData* data, int count);
- void WiseAgent_Close();
- int WiseMQTT_Open(char *server_url, char *device_mac, char *will_topic, char *will_message, /*connectionlost_callback*/);
- int WiseMQTT_Read(char *topic,/*receive_callback*/);
- void WiseMQTT_Write(char *topic,char *message,/*delivery_callback*/);
- void WiseMQTT_Close();