|
| int | golioth_stream_push_cb (struct golioth_client *client, const uint8_t *path, enum golioth_content_format format, const uint8_t *data, size_t data_len, golioth_req_cb_t cb, void *user_data) |
| | Push value to Golioth's LightDB Stream (callback based) More...
|
| |
| int | golioth_stream_push (struct golioth_client *client, const uint8_t *path, enum golioth_content_format format, const uint8_t *data, size_t data_len) |
| | Push value to Golioth's LightDB Stream (synchronously) More...
|
| |
Functions for interacting with the Golioth LightDB Stream service
◆ golioth_stream_push()
Push value to Golioth's LightDB Stream (synchronously)
Synchronously push new value to LightDB Stream.
- Parameters
-
| [in] | client | Client instance |
| [in] | path | LightDB Stream resource path |
| [in] | format | Format of payload |
| [in] | data | Payload data |
| [in] | data_len | Payload length |
- Return values
-
◆ golioth_stream_push_cb()
Push value to Golioth's LightDB Stream (callback based)
Asynchronously push new value to LightDB Stream and let cb be invoked when server acknowledges it or some error condition happens.
- Warning
- Experimental API
- Parameters
-
| [in] | client | Client instance |
| [in] | path | LightDB Stream resource path |
| [in] | format | Format of payload |
| [in] | data | Payload data |
| [in] | data_len | Payload length |
| [in] | cb | Callback executed on response received, timeout or error |
| [in] | user_data | User data passed to cb |
- Return values
-