PiInTheSky / lora-gateway

LoRa gateway to Habitat
96 stars 69 forks source link

Use LIFO circular buffer for Telemetry Upload #53

Closed philcrump closed 6 years ago

philcrump commented 6 years ago

Instead of using a pipe, instead uses an allocated buffer of pointers.

In the case of network errors, the packet is added to the bottom of the buffer. Ideally it'd be re-added to the top but this way if habitat is rejecting a particular packet, then it doesn't clog the pipeline.

Independent to the 2x other pull reqs today.