I’ve been a bit confused about the role of gateways versus devices in Losant and wondering if my architecture is set up optimally. In my application, I have industrial controllers which we might consider to be peripherals and do not have Internet communications directly. The industrial controllers connect to a separate cellular modem which packages up the information from the controller and sends it via a proprietary protocol based on UDP. Since Losant cannot directly process UDP packets, I use an intermediary server on AWS to take the incoming UDP packets from all of our devices and generate an HTTP request which is then used to trigger a webhook within Losant.
Currently we uses Devices within Losant to correspond to each cellular modem. I’m wondering whether this is the right way to approach it? This seems to work OK for now because we only have one cellular modem for each industrial controller, however that may change in the future where we have multiple controllers accessing one cellular modem for the back haul to the internet. Also I’m wondering what should be the role of the intermediary server within the Losant model of devices, peripherals and gateways? Are there any specific advantages or disadvantages of using a particular combination of devices, peripherals, and gateways?