does setting a variable over RPC set it to 0 first? or reassign it.
I'm setting a variable via http and it is triggering an event when one is bigger than the other even if i set it so it shouldn't
for example
if (iPIR>pir_sense){
catDetect++;
}
if i change pir_sense to anything even a buge number it increases the catdetect var
Good afternoon,
does setting a variable over RPC set it to 0 first? or reassign it.
I'm setting a variable via http and it is triggering an event when one is bigger than the other even if i set it so it shouldn't
for example
<<code>>
if (iPIR>pir_sense){
catDetect++;
}
<</code>>
if i change pir_sense to anything even a buge number it increases the catdetect var
A little bit more debugging and it seems to be disabling the RPCVariable after i call the URL via ajax/jquery.
If I do it manually it works fine.
if I modify the code to just output the url and copy and paste it, it works fine.
I'm confused
A little bit more debugging and it seems to be disabling the RPCVariable after i call the URL via ajax/jquery.
If I do it manually it works fine.
if I modify the code to just output the url and copy and paste it, it works fine.
I'm confused
it was the url, worked fine in the browser but it need the '%20' to add the space for the '/write 123' bit so the url is now
'urltombed/rpc/rpcvaltoedit/write%20val'
thanks for reading
Fixed it, nevermind.
it was the url, worked fine in the browser but it need the '%20' to add the space for the '/write 123' bit so the url is now
'urltombed/rpc/rpcvaltoedit/write%20val'
thanks for reading
Important Information for this Arm website
This site uses cookies to store information on your computer.
By continuing to use our site, you consent to our cookies.
If you are not happy with the use of these cookies, please review our
Cookie Policy
to learn how they can be disabled.
By disabling cookies, some features of the site will not work.
Access Warning
You do not have the correct permissions to perform this operation.
Good afternoon,
does setting a variable over RPC set it to 0 first? or reassign it.
I'm setting a variable via http and it is triggering an event when one is bigger than the other even if i set it so it shouldn't
for example
if i change pir_sense to anything even a buge number it increases the catdetect var