====== Device Classes ====== Every uberbus device implements a set of classes. A class defines the functionality a node offers. It defines the protocol to use and the available features. Every class gets its own pair of UDP/TCP ports on the nodes IP. Currently two classes are defined: Human Interface Device(HID) and moodlamp. Every class has a unique 8bit class id. ===== List Of Classes ===== ==== Human Interface Device(HID) ==== Class id: 10 Port: 2310 Description: A device which is used to interact with humans. Can contain buttons, switches, rotary encoders, displays or LEDs. Proposed protocol: : hexadecimal digit : ASCII string commands: L Switch on LED l Switch off LED D Display at position G Return state of button G Return state of all buttons S Make a sound with frequency and duration B Blink LED unsolicited messages: B Button was pressed b Button was released ==== Moodlamp ==== Class id: 23 Port: 2323 Description: A moodlamp. ==== Digital Output ==== Class id: 11 Port: 2311 Description: A device with (several) digital output(s). ==== Digital Input ==== Class id: 12 Port: 2312 Description: A device with (several) digital input(s).