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
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
#bta ⇒ Object
77 78 79 |
# File 'lib/sphero/response.rb', line 77 def bta body.drop(16).slice_before(0x00).first.pack 'C*' end |
#name ⇒ Object
73 74 75 |
# File 'lib/sphero/response.rb', line 73 def name body.take(16).slice_before(0x00).first.pack 'C*' end |