Skip to content

naneos.cloud

The naneos IoT service: upload here, download in naneos.cloud.download (optional extra).

upload_snapshot(data)

Upload the frames of a snapshot, keyed by device serial number.

Blocks for up to TIMEOUT_SECONDS. Raises requests.RequestException on network problems; HTTP errors are reported by the returned response.

Source code in src/naneos/cloud/upload.py
 96
 97
 98
 99
100
101
102
def upload_snapshot(data: dict[int, pd.DataFrame]) -> requests.Response:
    """Upload the frames of a snapshot, keyed by device serial number.

    Blocks for up to TIMEOUT_SECONDS. Raises requests.RequestException on
    network problems; HTTP errors are reported by the returned response.
    """
    return send_frames(prepare_frames(data))