todbot / blink1-tool

Command-line tools and C library for blink(1) USB RGB LED
https://blink1.thingm.com/
Other
84 stars 15 forks source link

blink1-tiny-server doesn't support non-default device #35

Closed normanr closed 3 years ago

normanr commented 3 years ago

The -d/--id option to blink1control-tool doesn't work with blink1-tiny-server, because blink1-tiny-server uses blink1_open and not blink1_openById

todbot commented 3 years ago

This is a good idea. It's complicated by the threaded nature of mongoose but I think the change I made is no worse than what it was before. At some point I'd like to do a proper run at a C-based blink(1) REST server.

normanr commented 3 years ago

oh, heh. I solved it by accepting the "id" http variable (see my fork).

todbot commented 3 years ago

I merged your many great changes into this repo. Thanks!