-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Topics /paramset/ not working #23
Comments
Oh yes, you're right. Obviously never tested that. I would prefer to stick with setValue for /set/ topics - as this is the way eQ-3's documentation describes for setting distinct values in the VALUE paramsets. Regarding the explicitDouble: we should iterate through a putParamset payload and call rpcType() for every value contained in the payload to make sure that the correct types are sent. Will try to implement it next weekend, but would also appreciate it when you want to do it :-) |
I'll do, but probably not before next week as well. I'm still in the process of getting familiar with the XML-RPC stuff, but I discovered a quite funny thing in my "destroy everything"-branch, here's the diff, and here the gist for testing: It seems that rfd is now accepting
of an |
Hi Simon, for clarification: the purpose of case 'ENUM':
if (typeof val === 'string') {
if (paramset.ENUM && (paramset.ENUM.indexOf(val) !== -1)) {
val = paramset.ENUM.indexOf(val);
}
} in |
It works the same way when you just send |
In line 140, you're calling the same function for /set/ and /paramset/, however the corresponding implementation always uses the RPC method
setValue
in line 361. For paramsets other thanVALUES
you have to useputParamset
instead.You could use
putParamset
for everything, because it also supportsVALUES
, but you have to encapsulate the data into an additional object, like here. I'm not sure how your solution about explicitDoubles will work with that, but you'll get the idea.The text was updated successfully, but these errors were encountered: