LoRa Channel Manager

LoRa Channel Manager periodically reads channel-configuration from LoRa Server, updates the packet-forwarder configuration in case of updates, and restarts the packet-forwarder process in case of any changes.

How it works

At configured intervals it calls the LoRa Server API to fetch the channel-configuration for a given gateway MAC. In case of an update, it reads a base configuration, updates the channel related keys (radio_, chan_) and gateway_ID key and writes this as a new JSON file. After writing the new JSON configuration file, it will issue the configured packet-forwarder restart command.