class SpheroPwn::Asyncs::L1Diagnostics

The result of an L1 diagnostic request.

This is an asynchronous message because it's too long to fit into the command response structure.

Attributes

text[R]

@return {String} the text form of the diagnostics

Public Class Methods

id_code() click to toggle source
# File lib/sphero_pwn/asyncs/l1_diagnostics.rb, line 16
def self.id_code
  0x02
end
new(data_bytes) click to toggle source
Calls superclass method SpheroPwn::Async::new
# File lib/sphero_pwn/asyncs/l1_diagnostics.rb, line 9
def initialize(data_bytes)
  super

  @text = data_bytes.pack('C*').encode! Encoding::UTF_8
end