Esempio n. 1
0
        static void Main(string[] args)
        {
            using (DriverApp App = new DriverApp())
            {
                if (App.Init(new IoTHubDriverModule(), args))
                {
                    // Do any initialization here
                    App.Log("JPI Solutions IoT Hub Driver Started");
                }

                // Start the main loop
                App.MainLoop();
            }
        }
Esempio n. 2
0
        static void Main(string[] args)
        {
            using (DriverApp App = new DriverApp())
            {
                // Init the driver with the database module
                if (App.Init(new CSharpModule(), args))
                {
                    // Do custom driver init here
                    App.Log("Notify driver started");

                    // Start the driver MainLoop
                    App.MainLoop();
                }
            }
        }