ruuvi / ruuvi.gateway_esp.c

Ruuvi Gateway ESP32 code
BSD 3-Clause "New" or "Revised" License
25 stars 15 forks source link

Optimize message parsing received via UART from nRF52 #889

Closed TheSomeMan closed 1 year ago

TheSomeMan commented 1 year ago

Refactor messaging parsing: Use single-threaded state machine in place of two-threaded implementation

This issue relates to #886.

The change is made for multiple reasons:

  1. Performance Improvements.
  2. Simpler debugging due to the reduction of synchronization issues.
  3. Increased maintainability.
  4. Memory efficiency: This implementation contributes towards saving approximately 6.5 kB of memory.