Logging
def received(data, resolve, command)
logger.debug {
cmd = String.new("Device sent 0x#{byte_to_hex(data)}")
cmd << " for command #{command[:name]}" if command
cmd # return the text to be displayed if we are debugging
}
endbegin
raise 'whoa!'
rescue => e
logger.print_error e, 'optional additional description of error'
endLast updated