Golioth Firmware SDK
Loading...
Searching...
No Matches
stream.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2023 Golioth, Inc.
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6#pragma once
7
9#include <golioth/client.h>
10
16
38enum golioth_status golioth_stream_set_async(struct golioth_client *client,
39 const char *path,
40 enum golioth_content_type content_type,
41 const uint8_t *buf,
42 size_t buf_len,
43 golioth_set_cb_fn callback,
44 void *callback_arg);
45
60enum golioth_status golioth_stream_set_sync(struct golioth_client *client,
61 const char *path,
62 enum golioth_content_type content_type,
63 const uint8_t *buf,
64 size_t buf_len,
65 int32_t timeout_s);
66
golioth_status
golioth_content_type
Golioth Content Type.
Definition client.h:41
void(* golioth_set_cb_fn)(struct golioth_client *client, const struct golioth_response *response, const char *path, void *arg)
Definition client.h:172
enum golioth_status golioth_stream_set_async(struct golioth_client *client, const char *path, enum golioth_content_type content_type, const uint8_t *buf, size_t buf_len, golioth_set_cb_fn callback, void *callback_arg)
enum golioth_status golioth_stream_set_sync(struct golioth_client *client, const char *path, enum golioth_content_type content_type, const uint8_t *buf, size_t buf_len, int32_t timeout_s)