Zway-Bot [v1.7.2] Add Logging to some Modules, fixing a bug in overtaker (now it not removes every time all events, so only the latest event are watched)
[Utils] Fixing a bug if more than one argument with params
This commit is contained in:
parent
7a1843c5e1
commit
7af4ef7c4e
@ -37,6 +37,7 @@ namespace BlubbFish.Utils.IoT.Bots.Moduls {
|
||||
}
|
||||
|
||||
protected void Reconnect() {
|
||||
Console.WriteLine("BlubbFish.Utils.IoT.Bots.Moduls.Mqtt.Reconnect()");
|
||||
this.Disconnect();
|
||||
this.Connect();
|
||||
}
|
||||
|
@ -13,12 +13,13 @@ namespace BlubbFish.Utils.IoT.Bots.Moduls {
|
||||
|
||||
#region Overtakerfunctions
|
||||
protected void ParseIni() {
|
||||
this.RemoveLibraryUpdateHooks();
|
||||
foreach (KeyValuePair<String, Dictionary<String, String>> item in this.config) {
|
||||
if (item.Value.ContainsKey("from")) {
|
||||
String from = item.Value["from"];
|
||||
String[] source = from.Split(':');
|
||||
this.events.Add(source[0], item.Value);
|
||||
this.LibraryUpdateHook(source[0]);
|
||||
this.AddLibraryUpdateHook(source[0]);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -53,7 +54,9 @@ namespace BlubbFish.Utils.IoT.Bots.Moduls {
|
||||
}
|
||||
}
|
||||
|
||||
protected abstract void LibraryUpdateHook(String id);
|
||||
protected abstract void AddLibraryUpdateHook(String id);
|
||||
|
||||
protected abstract void RemoveLibraryUpdateHooks();
|
||||
|
||||
protected abstract void SetValueHook(String id, String prop, String value);
|
||||
#endregion
|
||||
|
@ -10,7 +10,7 @@ using System.Runtime.InteropServices;
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("Bot-Utils")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2018")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2018 - 02.10.2018")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
|
||||
// Sie können alle Werte angeben oder Standardwerte für die Build- und Revisionsnummern verwenden,
|
||||
// indem Sie "*" wie unten gezeigt eingeben:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.0.1.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.1.0")]
|
||||
[assembly: AssemblyVersion("1.0.2")]
|
||||
[assembly: AssemblyFileVersion("1.0.2")]
|
||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user