persistPayloadFromDevice

Encodes device payloads with pending heartbeats, then propagates any storage error.