You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tested with the Projection Design F12, F32 & F35 models.
The local_action_GetPower() function has a couple of issues when used to communicate with some of the PD models.
Looking at the protocol manual, all GET commands require a ' ? ' argument. This is actually missing from the recipe's function.
local_action_GetPower()
currently: result = send_cmd('POST')
should be: result = send_cmd('POST', '?')
A correct response to this message takes the form of : %001 POWR 000001
The final argument (000001) being the response rcvpack[1] referenced in the send_cmd function.
A valid response isn't prefaced by an ' ! ' as the code suggests :
if(result=='!00000' or result=='!00001'):
print 'power is off'
'!' refer to a series of error codes in response to invalid commands, such as missing an argument.
Additionally, sending a '?' argument nullifies the related assert statement in the send_cmd function. As the response doesn't contain this character, unlike if you sent a numerical argument. if(arg): assert arg in rcvpack[1]
The text was updated successfully, but these errors were encountered:
Tested with the Projection Design F12, F32 & F35 models.
The local_action_GetPower() function has a couple of issues when used to communicate with some of the PD models.
Looking at the protocol manual, all GET commands require a ' ? ' argument. This is actually missing from the recipe's function.
local_action_GetPower()
currently:
result = send_cmd('POST')
should be:
result = send_cmd('POST', '?')
A correct response to this message takes the form of :
%001 POWR 000001
The final argument (000001) being the response
rcvpack[1]
referenced in the send_cmd function.A valid response isn't prefaced by an ' ! ' as the code suggests :
'!' refer to a series of error codes in response to invalid commands, such as missing an argument.
Additionally, sending a '?' argument nullifies the related assert statement in the send_cmd function. As the response doesn't contain this character, unlike if you sent a numerical argument.
if(arg): assert arg in rcvpack[1]
The text was updated successfully, but these errors were encountered: