From feb2ae1aea1e0dfe1f9926f34cfd48353c61f53f Mon Sep 17 00:00:00 2001 From: Collin Guarino Date: Sat, 30 Jan 2016 13:18:03 -0500 Subject: Added some command specific errors. --- bridge.go | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/bridge.go b/bridge.go index 36fc104..7f21d30 100644 --- a/bridge.go +++ b/bridge.go @@ -86,7 +86,15 @@ var ( processing of the command. This indicates an error in the bridge, not in the message being sent.`} - // TODO: Command specific error numbers and descriptions + // Command Specific Errors + ErrLink = Error{101, "Link button not pressed.", + `/config/linkbutton is false. Link button has + not been pressed in last 30 seconds.`} + ErrDHCP = Error{110, "DHCP cannot be disabled.", + "DHCP can only be disabled if there is a valid static IP configuration"} + ErrUpdate = Error{111, "Invalid updatestate.", + "Checkforupdate can only be set in updatestate 0 and 1."} + // TODO: Need to add 201, 301, 305, 306, 402, 403, 501, 502, 601... ) // NewBridge defines hardware that is compatible with Hue. -- cgit v1.2.3