Developing services for the IoT Gateway
You can easily develop your own service modules for the IoT Gateway. You just create a .NET Standard 2.0 Class Library and add the code you want to include. You add references to the libraries you wish to use. If you want to access Gateway functionality, add a reference to the Waher.IoTGateway
library.
Creating a service module
It is the Waher.Runtime.Inventory
module that keeps track of all modules, classes, and types in the runtime environment. You don't have to initialize it yourself, as you did in the earlier chapters. The IoT Gateway makes sure to initialize it with all available assemblies. However, it defines an interface IModule
that might be of importance to you. By implementing it, you will get notified when the Gateway starts and stops. This is done through calls to the Start()
and Stop()
methods defined by the interface. By implementing this interface, you can make sure to initialize and terminate your service module properly.
Note
Most of...