Virgil IoT KIT
Functions
curl-http.h File Reference

Default implementation for thing communication. More...

#include <virgil/iot/cloud/cloud.h>

Go to the source code of this file.

Functions

const vs_cloud_impl_tvs_curl_http_impl (void)
 Returns curl based implementation of transport. More...
 

Detailed Description

Default implementation for thing communication.

Curl based http_request used under the hood. Example of usage inside vs_cloud_init:

vs_storage_op_ctx_t slots_storage_impl; // Storage implementation for slot
vs_secmodule_impl_t *secmodule_impl; // Security implementation
// Init storage implementation
vs_app_storage_init_impl(&slots_storage_impl, vs_app_slots_dir(), VS_SLOTS_STORAGE_MAX_SIZE)
// You can initialize security module by software implementation :
secmodule_impl = vs_soft_secmodule_impl(&slots_storage_impl);
// Cloud initialization

You need to implement custom storage implementation. As an example you can see default implementation in vs_app_storage_init_impl() function in app-storage.c file.

Function Documentation

◆ vs_curl_http_impl()

const vs_cloud_impl_t* vs_curl_http_impl ( void  )

Returns curl based implementation of transport.

Returns
vs_cloud_impl_t
vs_secmodule_impl_t
Security Module implementation.
Definition: secmodule.h:458
vs_cloud_init
vs_status_e vs_cloud_init(const vs_cloud_impl_t *cloud_impl, const vs_cloud_message_bin_impl_t *message_bin_impl, vs_secmodule_impl_t *secmodule)
Initialize message bin.
vs_soft_secmodule_impl
vs_secmodule_impl_t * vs_soft_secmodule_impl(vs_storage_op_ctx_t *slots_storage_impl)
Initialize software crypto implementation.
vs_storage_op_ctx_t
Storage element context.
Definition: storage_hal.h:221
vs_aws_message_bin_impl
const vs_cloud_message_bin_impl_t * vs_aws_message_bin_impl(void)
Returns MQTT based implementation of transport.
vs_curl_http_impl
const vs_cloud_impl_t * vs_curl_http_impl(void)
Returns curl based implementation of transport.
VS_SLOTS_STORAGE_MAX_SIZE
#define VS_SLOTS_STORAGE_MAX_SIZE
Definition: vs-soft-secmodule.h:70