Hello
I try to sent some data to my Hue lamps
I need to do a PUT action
I use
Dim req As HttpRequest
When I press a button I do:
How can I get this to work I guss I do something wrong by convert it to a byte,...
I try to sent some data to my Hue lamps
I need to do a PUT action
I use
Dim req As HttpRequest
When I press a button I do:
B4X:
string1 = "{" & Chr(34) & "devicetype" & Chr(34) & ":" & Chr(34) & "Albert" & Chr(34) & "}"
on= "http://192.168.0.12/api/mAuspDhgPKALjmuonHyPAe-dfqvzd3qqBo9uyrvo/lights/10/state"
status = "{" & Chr(34) & "on" & Chr(34) & ":false}"
b = status.GetBytes("UTF8")
req.InitializePut2(on, b)
How can I get this to work I guss I do something wrong by convert it to a byte,...