Exemple #1
0
        public override bool Update(BaseConfigurationType newValue)
        {
            var v = (ConfigurationType)newValue;

            Log.WriteLine("updating from {0} to {1}", this.ToString(), v.ToString());
            return(false);
        }
Exemple #2
0
        public override bool Update(BaseConfigurationType newValue)
        {
            var v = (ConfigurationType)newValue;

            Log.WriteLine("updating from {0} to {1}", this.ToString(), v.ToString());
            bool rc = GpioPins.Update(v.GpioPins);

            Log.WriteLine("{0} update to {1}", rc ? "did" : "did not", this.ToString());
            return(rc);
        }
Exemple #3
0
        public override bool Update(BaseConfigurationType newValue)
        {
            var v = (ConfigurationType)newValue;

            Log.WriteLine("updating from {0} to {1}", this.ToString(), v.ToString());
            // TODO: implement cloud side device configuration
            bool rc = false;

            //bool rc = GpioPins.Update(v.GpioPins);
            Log.WriteLine("{0} update to {1}", rc ? "did" : "did not", this.ToString());
            return(rc);
        }
Exemple #4
0
 public override bool Update(BaseConfigurationType newValue)
 {
     // TODO: implement cloud side device configuration
     Log.WriteLine("updating from {0} to {1}", this.ToString(), newValue.ToString());
     return(true);
 }