Fix bug where GPV is sent with no parameters
This commit is contained in:
1 parent
e6b717ef1b
commit
2e7fb3d40d
1 file changed
+5
-4
+5
-4
@@ -917,10 +917,11 @@ generateGetRpcRequest = (sessionContext) ->
|
|||||||
if sessionContext.deviceData.attributes.has(path)
|
if sessionContext.deviceData.attributes.has(path)
|
||||||
parameterNames.push(path)
|
parameterNames.push(path)
|
||||||
|
|
||||||
return {
|
if parameterNames.length
|
||||||
name: 'GetParameterValues'
|
return {
|
||||||
parameterNames: (p.join('.') for p in parameterNames)
|
name: 'GetParameterValues'
|
||||||
}
|
parameterNames: (p.join('.') for p in parameterNames)
|
||||||
|
}
|
||||||
|
|
||||||
return null
|
return null
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user