Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)

Paste

Pasted as C# by registered user larz_rhcp ( 5 years ago )
class Device
    {
        //MONGO
        public ObjectId _id { get; set; }

        //USER
        public string user_ID { get; set; }
        public int division { get; set; }
        public string protocol { get; set; }
        //public ObjectId ProfilePollingID { get; set; }
        //public ObjectId Protocol { get; set; }

        //USER 2
        public int energia_activa { get; set; }
        public int energia_reactiva { get; set; }
        public int voltaje_a { get; set; }
        public int voltaje_c { get; set; }
        public int corriente_a { get; set; }
        public int corriente_c { get; set; }
        public int potencia_a { get; set; }
        public int potencia_c { get; set; }
        public bool abrir { get; set; }
        public bool cerrar { get; set; }
        public int timeout { get; set; }
        public int polling { get; set; }
        public int rssiUp { get; set; }
        public int snrUp { get; set; }
        public int rssiDown { get; set; }
        public int snrDown { get; set; }
        public string transparente { get; set; }
        //LOGICA
        public string dev_eui { get; set; }
        public string gateway_id { get; set; }
        public int secuencia { get; set; }
        public int unix_inicio { get; set; }
        public int periodo_dia { get; set; }
        public int periodo_hora { get; set; }
        public int periodo_minuto { get; set; }
        public int periodo_segundo { get; set; }

        //public bool matchup { get; set; }
        //public byte petition { get; set; } //comando requerido, 0= sin peticion

        public Device(string userid)
        {
            user_ID = userid;
            protocol = "Medidor CFE-34";
        }
    }

 

Revise this Paste

Parent: 115429
Children: 115431
Your Name: Code Language: