コード例 #1
0
        public void DeviceParameterUpdated(DeviceParameter p0)
        {
            Safety(() =>
            {
                logger.Log($"[R7] Device parameter updated `{Safety(() => p0.Identifier.ToR7().FromR7().ToString(), () => p0.Identifier.ToString()) }` [{p0.Characteristic}] -> `{p0.LabelForValue(p0.CachedValue) ?? p0.CachedValue.ToString()}`");

                device.OnParameterChanged(p0);

                __DeviceParameterUpdated(this, p0);
            });
        }
コード例 #2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="p"></param>
        /// <returns>Changed?</returns>
#if ANDROID
        public bool OnParameterChanged(UK.Rock7.Connect.Device.DeviceParameter p)