Skip to main content
Skip table of contents

Get Packet String

function Packet_GetPacketString (msg, packet)

  require 'HexString'
  require 'LOG'

  if packet ~= nil then
    local targetMacHex = "ECF4BBF1BBDC"
    local destMac = GetPacketString(packet, 6, 11)
    local srcMac = GetPacketString(packet, 0, 5)
    local destMacHex = StringToHex(destMac)
    local srcMacHex = StringToHex(srcMac)
    if destMacHex == targetMacHex then
      EZINFO('Target Mac Address Found: ', GetUuid(msg), ", ", srcMacHex, ", ", destMacHex)
    end
  end
end
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.