Class: Sphero::Response::GetBluetoothInfo

Inherits:
Sphero::Response show all
Defined in:
lib/sphero/response.rb

Constant Summary

Constants inherited from Sphero::Response

ASYNC_RESPONSE, CODE_OK, DLEN, MRSP, SEQ, SIMPLE_RESPONSE, SOP1, SOP2

Instance Method Summary collapse

Methods inherited from Sphero::Response

async?, #body, #empty?, #initialize, #seq, simple?, #success?, #valid?

Constructor Details

This class inherits a constructor from Sphero::Response

Instance Method Details

#btaObject



91
92
93
# File 'lib/sphero/response.rb', line 91

def bta
  body.drop(16).slice_before(0x00).first.pack 'C*'
end

#nameObject



87
88
89
# File 'lib/sphero/response.rb', line 87

def name
  body.take(16).slice_before(0x00).first.pack 'C*'
end