Hi..
I'm trying to send a json message to the Philips Hue router to turn on a light with Karotz javascript api.
By studying the API of the Hue, I found the following method can turn the light on..
Payload: {"on":true}
After I found the method,
I made a main.js with following codes..
datapost = {"on":true};
header = { };
isForm = false;
--->
Then, the following execption appears..
org.mozilla.javascript.WrappedException: Wrapped java.lang.ClassCastException: java.lang.Boolean cannot be cast to java.lang.String (init.js#45)
!!!!
Is there any way to solve this problem?
Thanks in advance..
Best!!!
hj Kang.