1 Reply Latest reply on Feb 14, 2017 12:34 PM by Salvador Fajardo

    Detect when MC9190-G is docked

    Michele Curioni

      Hi all,

      I'm writing an application in .NET to be deployed on a MC9190-G. The HH need to work offline when not docked, and can only use ethernet connectivity to communicate with server.

      I'd like the application to be notified when the HH is docked so that an upload can be initiated automatically.

      Is that possible?

       

      Also, I cannot find any single cradle with ethernet connectivity, the only one I found is a 4 slots one. Is that possible?

       

      Thanks,

      Michele

        • Re: Detect when MC9190-G is docked
          Salvador Fajardo

          Hi Michele

           

          I'm using the following code to detect if the MC9100 is on the caddle.

           

          c# / MS Studio 2008

           

          using System.Net;

           

          private static bool ActiveSyncConnected

          {

          get

               {

                    try

                          {

                              IPHostEntry entry = System.Net.Dns.GetHostEntry("PPP_PEER");

                              return true;

                          }

                         catch

                              {

                              return false;

                              }

               }

          }