Permalink
Browse files

�޸�gzzweb��Ŀ�ĵ�

  • Loading branch information...
1 parent aa879ee commit 558959cdcc5498ece62118afb6efaeeb63615c93 @wangyifei wangyifei committed May 11, 2012
Showing with 38 additions and 32 deletions.
  1. +38 −32 views/gzzweb.md
View
@@ -3,62 +3,68 @@
###1.设备接口描述
-####1.1开启全部设备 create方法: =>api/device - POST
+####1.1获取所有设备 get方法: =>api/device - GET
参数说明:
{
ParameterType: json
- Parameter:{
- queuecmd: 'start'
- }
+
return: {
- success: true | false,
- msg: 'error message'
+ devices: ['deviceName 1', 'device2', .... , 'deviceName n']
}
}
-####1.2接收设备 get方法: =>api/device - GET
+####1.2发送开启所有设备XML allstart方法: =>api/cmds/allstart - POST
参数说明:
{
- return: json{
- device:{name,ip,}
- }
- }
+ cmd: 'start'
+
+ device : 'deviceName'
+ port : '0' // 默认0
+ ip : 'deviceIp'
+
+ TargetDest = "DYULC.PHEDEVICE."+ device +".FOO";
+ cmd = queuecmd.start(device, ip, port);
-####1.3read方法: =>api/device - GET
+ sender.queue(TargetDest, cmd.toxml); //发送xml
-参数说明:
-
- {
- params: {
- Id: '设备ID'
- }
- }
+ }
-####1.4update方法: =>api/device - PUT
+
+####1.3发送关闭所有设备XML allstop方法: =>=>api/cmds/allstop - POST
参数说明:
{
- params: {
- Id: '设备ID'
- },
+ cmd: 'stop'
+
+ device : 'deviceName'
+ port : '0' // 默认0
+ ip : 'deviceIp'
+
+ TargetDest = "DYULC.PHEDEVICE."+ device +".FOO";
+ cmd = queuecmd.stop(device, ip, port);
+
+ sender.queue(TargetDest, cmd.toxml); //发送xml
+
- }
+ }
-####1.5delete方法: =>api/device - DELETE
+###2.已解决的问题
+2.1 页面可同时播放3个以上的OCX回显
+2.2 XML发送已经调通,可发送全部开启和全部关闭的XML指令
-参数说明:
+
+
+
+
+###3.未解决问题
+3.1由于接口未统一,无法发送开启或关闭个别设备的XML
+
- {
- params: {
- Id: '设备ID'
- },
-
- }

0 comments on commit 558959c

Please sign in to comment.