diff --git a/apps/aqhome-storage/u_devices.c b/apps/aqhome-storage/u_devices.c
index 1ade1e8..2375610 100644
--- a/apps/aqhome-storage/u_devices.c
+++ b/apps/aqhome-storage/u_devices.c
@@ -145,6 +145,7 @@ void _setFromObject(AQH_DEVICE *device, const AQH_DEVICE *srcDevice)
{
AQH_Device_SetRoomId(device, AQH_Device_GetRoomId(srcDevice));
AQH_Device_SetName(device, AQH_Device_GetName(srcDevice));
+ AQH_Device_SetDeviceType(device, AQH_Device_GetDeviceType(srcDevice));
AQH_Device_SetLocation(device, AQH_Device_GetLocation(srcDevice));
AQH_Device_SetDescription(device, AQH_Device_GetDescription(srcDevice));
}
@@ -252,18 +253,26 @@ void _writeEditingTable(AQH_HTTP_URLHANDLER *uh, GWEN_DB_NODE *dbValues, GWEN_BU
}
GWEN_Buffer_AppendString(pageBuf, "");
+ GWEN_Buffer_AppendArgs(pageBuf,
+ "
"
+ " | "
+ " | "
+ "
",
+ I18N("Type"),
+ dbValues?GWEN_DB_GetCharValue(dbValues, "deviceType", 0, ""):"");
GWEN_Buffer_AppendArgs(pageBuf,
" "
" | "
- " | "
- "
"
- " "
- " | "
- " | "
+ " | "
+ "
",
+ I18N("Location"),
+ dbValues?GWEN_DB_GetCharValue(dbValues, "location", 0, ""):"");
+ GWEN_Buffer_AppendArgs(pageBuf,
+ " "
+ " | "
+ " | "
"
"
" ",
- I18N("Location"),
- dbValues?GWEN_DB_GetCharValue(dbValues, "location", 0, ""):"",
I18N("Description"),
dbValues?GWEN_DB_GetCharValue(dbValues, "description", 0, ""):"");
}
@@ -283,11 +292,12 @@ void _listObjectsIntoBuffer(AQH_HTTP_URLHANDLER *uh, GWEN_BUFFER *pageBuf)
"%s
"
""
""
- " | %s | %s | %s | %s | |
"
+ " | %s | %s | %s | %s | %s | |
"
"",
I18N("Devices"),
I18N("Name"),
I18N("Room"),
+ I18N("Type"),
I18N("Location"),
I18N("Description"));
GWEN_Buffer_AppendString(pageBuf, "");
@@ -301,6 +311,7 @@ void _listObjectsIntoBuffer(AQH_HTTP_URLHANDLER *uh, GWEN_BUFFER *pageBuf)
int roomId;
const char *name;
const char *roomName=NULL;
+ const char *devType;
const char *descr;
const char *location;
const AQH_ROOM *r=NULL;
@@ -313,15 +324,17 @@ void _listObjectsIntoBuffer(AQH_HTTP_URLHANDLER *uh, GWEN_BUFFER *pageBuf)
roomName=AQH_Room_GetName(r);
name=AQH_Device_GetName(device);
+ devType=AQH_Device_GetDeviceType(device);
descr=AQH_Device_GetDescription(device);
location=AQH_Device_GetLocation(device);
GWEN_Buffer_AppendArgs(pageBuf,
- "| %s | %s | %s | %s | "
+ "
| %s | %s | %s | %s | %s | "
""
" | "
"
",
name?name:"",
roomName?roomName:"",
+ devType?devType:"",
location?location:"",
descr?descr:"", id);
diff --git a/aqhome/data/device.t2d b/aqhome/data/device.t2d
index 352f22e..f2b3bd1 100644
--- a/aqhome/data/device.t2d
+++ b/aqhome/data/device.t2d
@@ -51,6 +51,13 @@
own with_getbymember
+
+ 0
+ 0
+ public
+ own
+
+
0
0
diff --git a/aqhome/data/mqtttopic.t2d b/aqhome/data/mqtttopic.t2d
index 231bbdc..105fdda 100644
--- a/aqhome/data/mqtttopic.t2d
+++ b/aqhome/data/mqtttopic.t2d
@@ -23,11 +23,25 @@
-
-
+
+
+
+ -
+ numeric type
+
+
+ -
+ json data
+
+
+
+
+
+
+