HAN-IOT-LAB-2324 / CayenneLPP_MemOptimized

Cayenne Low Power Payload (LLP)
https://han-iot-lab-2324.github.io/CayenneLPP_MemOptimized/
GNU General Public License v3.0
0 stars 1 forks source link

First try at Memory optimization #2

Closed Hoog-V closed 4 months ago

Hoog-V commented 4 months ago

What has changed

Measurement_t data = SetDigitalOutput(0);

To this:
```c
Measurement_t data = {.type =MEASUREMENT_TYPE_DIGITAL_OUTPUT,
                                           .val={.DigitalGPIO=0} };

It basically optimizes away all the function structure, and converts it in compile-time to a variable assignment.

majidsabbagh commented 4 months ago

Seems good