Understanding the gateway code

The following is a diagram of main.py:

As you can see, main.py encapsulates the LoRaMessage and HeaterStatus classes. The LoRaMessage class receives LoRa messages from our edge device and the HeaterStatus class converts the LoRa message into an MQTT message to be sent to the cloud.