private void OnReceiveMicroclimateData(object obj, MicroclimateData data) { SafeInvoke(microclimateHandlers, h => h(data.Channel, data.Temperature, data.Humidity, data.LowBattery), true); Context.Require <ScriptsPlugin>() .EmitScriptEvent("noolite:microclimate-data:received", data.Channel, data.Temperature, data.Humidity, data.LowBattery); }
private static void AdapterOnReceiveMicroclimateData(object o, MicroclimateData result) { Console.WriteLine(result); }
private void OnReceiveMicroclimateData(object obj, MicroclimateData data) { SafeInvokeAsync(microclimateHandlers, h => h(data.Channel, data.Temperature, data.Humidity, data.LowBattery)); scripts.EmitScriptEvent("noolite:microclimate-data:received", data.Channel, data.Temperature, data.Humidity, data.LowBattery); }
private void OnReceiveMicroclimateData(object obj, MicroclimateData data) { SafeInvoke(microclimateHandlers, h => h(data.Channel, data.Temperature, data.Humidity, data.LowBattery), true); }