← Back to the chapter · Previous detail · Next detail →
Technical detail · 5G URLLC: Capabilities and Roadmap
Preserve fixes across a delivery gap
The example flushes buffered fixes before sending the new position when connected. While disconnected, it stores each fix. This application behavior complements the radio tuning; it does not measure the network interruption.
// Buffer GPS during handover
void on_gps_fix(gps_position_t pos) {
if (is_connected()) {
flush_buffer(); // Send buffered first
send_position(pos);
} else {
buffer_position(pos); // Store during gap
}
}