Sensor Hub MCU/WISEAgent
From ESS-WIKI
Revision as of 10:44, 5 February 2016 by Fred.chang (talk | contribs)
WiseAgentLite is a lite agent library to adapt to a poor performance platform. We separate it into two layers, RMM protocol layer and MQTT protocol layer.
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();