/// <summary>
        ///   Handle an event that should be treated as a UID being successfully read.
        /// </summary>
        /// <param name="payload">The payload to send with the event.</param>
        public void HandleUidEvent(byte[] uid)
        {
            byte[] payload = PreferredFormatter.GetPayload(uid);

            Log.InfoFormat("Using payload '{0}'.", BitConverter.ToString(payload).Replace("-", string.Empty));

            if (UseLoopback)
            {
                UdpBroadcaster.BroadcastLoopback(payload, Port);
            }
            else
            {
                UdpBroadcaster.Broadcast(payload, Port, IPAddress, NetworkInterface);
            }
        }
Exemple #2
0
        /// <summary>
        ///   Handle an event that should be treated as a UID being successfully read.
        /// </summary>
        /// <param name="payload">The payload to send with the event.</param>
        public void HandleUidEvent(byte[] uid)
        {
            string payload = PreferredFormatter.GetPayload(uid);

            SendPayload(payload);
        }