Class: Sphero::Request::Sphero

Inherits:
Sphero::Request show all
Defined in:
lib/sphero/request.rb

Constant Summary

Constants inherited from Sphero::Request

GetAutoReconnect, GetBluetoothInfo, GetPowerState, GetRGB, GetVersioning, Heading, Ping, Roll, SOP1, SOP2, SetAutoReconnect, SetBackLEDOutput, SetRGB, SetRotationRate, Sleep

Instance Attribute Summary

Attributes inherited from Sphero::Request

#data

Instance Method Summary collapse

Methods inherited from Sphero::Request

#bytes, #checksum, #dlen, #header, make_command, #packet_body, #packet_header, #response, #to_str

Constructor Details

#initialize(seq, data = []) ⇒ Sphero

Returns a new instance of Sphero


54
55
56
57
# File 'lib/sphero/request.rb', line 54

def initialize seq, data = []
  super
  @did = 0x02
end