Detect when MC9190-G is docked

M Michele Curioni 3 years 6 months ago
6 1 0

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

Please Register or Login to post a reply

1 Replies

S 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;
                    }
     }
}

CONTACT
Can’t find what you’re looking for?