Detect when MC9190-G is docked

M Michele Curioni 2 years 11 months ago
3 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?