Jaimi5 / LoRaChat

A LoRa Chat long-distance communication using LoRa technology and ESP32 LoRa boards. You can connect to your devices via phone using a Bluetooth Serial Terminal. We are using LoRaMesher to build a Mesh network.
MIT License
16 stars 3 forks source link

Modify LoRaChat to use it as a library #9

Closed NilLlisterri closed 7 months ago

NilLlisterri commented 8 months ago

I've made a few changes to transform the application into a library:

TODO: Find an alternative to declare the application ports when registering the application.

NilLlisterri commented 7 months ago

Hi! I've added a new commit, whose main contribution is to add a virtual destructor to the DataMessageGeneric class. This was needed to solve a memory leak caused by the deletion of an instance of a class that inherited from DataMessageGeneric.

E.g. when MqttService::processReceivedMessageFromMQTT deletes the message at the end.