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;
|
|
|
|
|
}
|
2018-12-30 20:50:20 +01:00
|
|
|
|
if(!InIReader.ConfigExist("requests")) {
|
|
|
|
|
Console.WriteLine("requests.ini not found!");
|
|
|
|
|
Console.ReadLine();
|
|
|
|
|
return;
|
|
|
|
|
}
|
2018-08-12 01:10:30 +02:00
|
|
|
|
InIReader ini = InIReader.GetInstance("settings");
|
|
|
|
|
ADataBackend b = (ADataBackend)ABackend.GetInstance(ini.GetSection("mqtt"), ABackend.BackendType.Data);
|
2018-12-30 20:50:20 +01:00
|
|
|
|
new Googlelocation(b, ini.GetSection("google"), InIReader.GetInstance("requests"));
|
2018-08-12 01:10:30 +02:00
|
|
|
|
while(true) {
|
|
|
|
|
System.Threading.Thread.Sleep(1000);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|