Persistent TM Store #320
@ -88,6 +88,17 @@ ReturnValue_t PusTmFunnel::performOperation(uint8_t) {
|
||||
SerializeIF::Endianness::NETWORK);
|
||||
tmStore->deleteUpTo(deleteUpToUnixSeconds);
|
||||
} else if (cmd == TmStoreMessage::DOWNLINK_STORE_CONTENT_TIME) {
|
||||
store_address_t storeId = TmStoreMessage::getStoreId(&cmdMessage);
|
||||
auto accessor = ipcStore.getData(storeId);
|
||||
uint32_t dumpFromUnixSeconds;
|
||||
uint32_t dumpUntilUnixSeconds;
|
||||
size_t size = accessor.second.size();
|
||||
SerializeAdapter::deSerialize(&dumpFromUnixSeconds, accessor.second.data(), &size,
|
||||
SerializeIF::Endianness::NETWORK);
|
||||
SerializeAdapter::deSerialize(&dumpUntilUnixSeconds, accessor.second.data(), &size,
|
||||
SerializeIF::Endianness::NETWORK);
|
||||
// TODO: TM store missing, and maybe there is a better way to do this?
|
||||
tmStore->dumpFromUpTo(dumpFromUnixSeconds, dumpUntilUnixSeconds, destinations, tmQueue);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user