Class: Sphero::Response::GetBluetoothInfo

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

Constant Summary

Constants inherited from Sphero::Response

CODE_OK, DLEN, MRSP, SEQ, SOP1, SOP2

Instance Method Summary collapse

Methods inherited from Sphero::Response

#body, #empty?, #initialize, #seq, #success?

Constructor Details

This class inherits a constructor from Sphero::Response

Instance Method Details

#btaObject



77
78
79
# File 'lib/sphero/response.rb', line 77

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

#nameObject



73
74
75
# File 'lib/sphero/response.rb', line 73

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