LA1TV / Hyperdeck-JS-Lib

A javascript library for communication with the Blackmagic Hyperdeck.
MIT License
26 stars 8 forks source link

add alternate route for `commands` response #37

Closed joshhodgson closed 6 years ago

joshhodgson commented 6 years ago

the response doesn't match the normal formatting of

{Response code} {Response text}:
{Parameter}: {Value}
{Parameter}: {Value}
...

This addresses #36

This needs testing

tjenkinson commented 6 years ago

Given that there are even more commands that also don't return the documented structure I'm thinking it might be better to always provide the raw response, and then in addition when it is the proper format parse the individual keys and provide them. This makes it a bit more future proof for new strange responses too. Might have a look later

tjenkinson commented 6 years ago

closing because of https://github.com/LA1TV/Hyperdeck-JS-Lib/pull/42