Exemplo n.º 1
0
        public int GetDtuByPosition(uint pos, ref IInfoStruct pDtuInfo)
        {
            var infostruct = new DtuInfoStruct();
            var result     = GPRSDTUWrapper.DSGetModemByPosition(pos, ref infostruct);

            if (pDtuInfo == null)
            {
                pDtuInfo = new InfoStruct();
            }

            pDtuInfo.ConnectionTime = infostruct.m_conn_time;
            pDtuInfo.DynamicIp      = infostruct.m_dynip;
            pDtuInfo.Id             = infostruct.m_dtuId;
            pDtuInfo.PhoneNo        = infostruct.m_phoneno;
            pDtuInfo.RefreshTime    = infostruct.m_refresh_time;

            return(result);
        }
Exemplo n.º 2
0
 public static extern int DSGetModemByPosition(uint pos, ref DtuInfoStruct pDtuInfo);