Method: Lignite::Ev3Ops#com_get_get_network

Defined in:
lib/lignite/ev3_ops.rb

#com_get_get_network(hardware, length, name, mac, ip) ⇒ Object

Gets the network information. WIFI only

Parameters:

  • hardware (PAR8)

    (in) Hardware Transport Layer

  • length (PAR8)

    (in) Max length of returned string

  • name (PAR8)

    (out) First character in AP name

  • mac (PAR8)

    (out) First character in MAC address string

  • ip (PAR8)

    (out) First character in IP address string



8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
# File 'lib/lignite/ev3_ops.rb', line 8408

def com_get_get_network(hardware, length, name, mac, ip)
  logger.debug do
    args = [hardware, length, name, mac, ip]
    "called com_get_get_network with #{args.inspect}"
  end

  bytes = u8(0xD3)
  bytes += param_simple(14)
  bytes += param_simple(hardware)
  bytes += param_simple(length)
  bytes += param_simple(name)
  bytes += param_simple(mac)
  bytes += param_simple(ip)
  logger.debug "returning bytecode: #{bytes.inspect}"
  bytes
end