lib/twib/interfaces/ITwibMetaInterface.rb in twib-0.1.2 vs lib/twib/interfaces/ITwibMetaInterface.rb in twib-0.1.3

- old
+ new

@@ -12,10 +12,12 @@ end # Lists devices known to twibd. # @return [Array<Hash>] def list_devices - MessagePack.unpack(send(Command::LIST_DEVICES).wait_ok.payload) + response = send(Command::LIST_DEVICES).wait_ok.payload + size = response.unpack("Q<")[0] + MessagePack.unpack(response[8, size]) end end end end