Sha256: 9b7954321096ae2fa64432c8b50862cde09da3ed3d9777bec4ca4a2e2887cd97
Contents?: true
Size: 491 Bytes
Versions: 1
Compression:
Stored size: 491 Bytes
Contents
require "msgpack" require "twib/interface.rb" module Twib module Interfaces # Exposed by twibd class ITwibMetaInterface < Interface # @api private module Command LIST_DEVICES = 10 end # Lists devices known to twibd. # @return [Array<Hash>] def list_devices response = send(Command::LIST_DEVICES).wait_ok.payload size = response.unpack("Q<")[0] MessagePack.unpack(response[8, size]) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
twib-0.1.3 | lib/twib/interfaces/ITwibMetaInterface.rb |