Lora-Map/mqtt-map/Program.cs

25 lines
881 B
C#
Raw Normal View History

2018-08-12 01:10:30 +02:00
using System;
using System.Collections.Generic;
using BlubbFish.Utils;
using BlubbFish.Utils.IoT.Connector;
using Fraunhofer.Fit.IoT.Bots.LoraBot.Moduls_broken;
namespace mqtt_map {
class Program {
static void Main(String[] args) {
2018-08-12 19:02:49 +02:00
InIReader.SetSearchPath(new List<String>() { "/etc/mqttmap", Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "\\mqttmap" });
if (!InIReader.ConfigExist("settings")) {
2018-08-12 01:10:30 +02:00
Console.WriteLine("settings.ini not found!");
Console.ReadLine();
return;
}
InIReader ini = InIReader.GetInstance("settings");
ADataBackend b = (ADataBackend)ABackend.GetInstance(ini.GetSection("mqtt"), ABackend.BackendType.Data);
new Googlelocation(b, ini.GetSection("google"));
while(true) {
System.Threading.Thread.Sleep(1000);
}
}
}
}