aqhome-data: adding datapoints basically works now.
This commit is contained in:
@@ -14,6 +14,8 @@
|
||||
#include "./nodes/flash.h"
|
||||
#include "./nodes/getdevices.h"
|
||||
#include "./data/getvalues.h"
|
||||
#include "./data/addvalue.h"
|
||||
#include "./data/adddata.h"
|
||||
|
||||
#include <aqhome/api.h>
|
||||
#include <aqhome/aqhome.h>
|
||||
@@ -71,6 +73,8 @@ int main(int argc, char **argv)
|
||||
GWEN_FE_DAH("flash", AQH_Tool_Flash, I18N("Flash a given node on the network")),
|
||||
GWEN_FE_DAH("getdevices", AQH_Tool_GetDevices, I18N("Request list of known devices on the network")),
|
||||
GWEN_FE_DAH("getvalues", AQH_Tool_GetValues, I18N("Request list of known values on the data server")),
|
||||
GWEN_FE_DAH("addvalue", AQH_Tool_AddValue, I18N("Add a value to the data server")),
|
||||
GWEN_FE_DAH("adddata", AQH_Tool_AddDataPoint, I18N("Send a datapoint to the data server")),
|
||||
GWEN_FE_END(),
|
||||
};
|
||||
const GWEN_FUNCS *func;
|
||||
@@ -87,6 +91,7 @@ int main(int argc, char **argv)
|
||||
|
||||
GWEN_Logger_Open(0, "aqhome-tool", 0, GWEN_LoggerType_Console, GWEN_LoggerFacility_User);
|
||||
GWEN_Logger_SetLevel(0, GWEN_LoggerLevel_Notice);
|
||||
GWEN_Logger_SetLevel(0, GWEN_LoggerLevel_Info);
|
||||
|
||||
rv=AQH_Init();
|
||||
if (rv<0) {
|
||||
|
||||
Reference in New Issue
Block a user