Пример #1
0
        void m_deviceComEvents_onDataReceived(ref object report)
        {
            // LC 11-7-2013 TT: 23171   Cannot receive OLMP/Bladerunner responses from headset - need to expose Device.DataReceived event to COM
            // Try adding onDataReceived event handler
            //DebugPrint(MethodInfo.GetCurrentMethod().Name, "Spokes: onDataReceived report from device");
            // return data to connected app via Spokes Wrapper event...

            byte[] reportbuf = (byte[])report;
            RawDataReceivedArgs args = new RawDataReceivedArgs(reportbuf, byteArrayToString(reportbuf));
            OnRawDataReceived(args);

            // uncomment for debug:
            // Console.WriteLine(args.m_datareporthex);
        }
Пример #2
0
 // Triggered when the Plantronics device has sent a raw (ODP/BR) report to PC: ************************************************************
 private void OnRawDataReceived(RawDataReceivedArgs e)
 {
     if (RawDataReceived != null)
         RawDataReceived(this, e);
 }
Пример #3
0
 void m_spokes_RawDataReceived(object sender, RawDataReceivedArgs e)
 {
     // Args: raw message hex, typeid (int) reserved for future use, options string reserved for future use
     OnPltEvent(new PltEventArgs(PltEventType.RawDataReceived,
         e.m_datareporthex, "0", ""));
 }