Class: Sphero::Response::GetBluetoothInfo
- Inherits:
-
Sphero::Response
- Object
- Sphero::Response
- Sphero::Response::GetBluetoothInfo
- 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
#bta ⇒ Object
91 92 93 |
# File 'lib/sphero/response.rb', line 91 def bta body.drop(16).slice_before(0x00).first.pack 'C*' end |
#name ⇒ Object
87 88 89 |
# File 'lib/sphero/response.rb', line 87 def name body.take(16).slice_before(0x00).first.pack 'C*' end |