Hi Jay,
Sorry for this newbie question, but how do I grab just the third value.
Everything I try gets me an arity mismatch:
result arity mismatch;
expected number of values not received
expected: 1
received: 3
values...:
#HTTP/1.1 200 OK
'(#Cache-Control: no-store, no-cache,
Thanks so much; however, I'm still having trouble getting the lights to
respond. I had to alter your example somewhat, because Racket was complaining
about an in-string: contract violation. The following seems to work:
(http-sendrecv
192.168.1.95 /api/username/lights/1/state
#:method 'PUT
John,
Thank you so much. That solved the problem of controlling the lights. However,
I still can't figure out how to get at the response from the Hue Bridge. I
should be receiving:
[
{success:{/lights/1/state/on:true}},
{success:{/lights/1/state/bri:170}},
Hello,
I'm new to programming, so patience is appreciated. I'm writing a simple
program in Racket to control Phillip Hue Bulbs in a performance environment.
Phillips has a simple RESTful API and I'm looking for the Racket commands or
library to send the commands. Previously I've used
4 matches
Mail list logo