nRF Connect SDK API 2.8.99
Loading...
Searching...
No Matches
Cloud wrapper library

A Library that exposes generic functionality of cloud integration layers. More...

Data Structures

struct  cloud_wrap_event_data
 Structure used to reference application data that is sent and received from the cloud wrapper library. More...
 
struct  cloud_wrap_event
 Cloud wrapper API event. More...
 

Typedefs

typedef void(* cloud_wrap_evt_handler_t) (const struct cloud_wrap_event *evt)
 Cloud wrapper library asynchronous event handler.
 

Enumerations

enum  cloud_wrap_event_type {
  CLOUD_WRAP_EVT_CONNECTING , CLOUD_WRAP_EVT_CONNECTED , CLOUD_WRAP_EVT_DISCONNECTED , CLOUD_WRAP_EVT_DATA_RECEIVED ,
  CLOUD_WRAP_EVT_USER_ASSOCIATION_REQUEST , CLOUD_WRAP_EVT_USER_ASSOCIATED , CLOUD_WRAP_EVT_DATA_ACK , CLOUD_WRAP_EVT_PING_ACK ,
  CLOUD_WRAP_EVT_AGNSS_DATA_RECEIVED , CLOUD_WRAP_EVT_PGPS_DATA_RECEIVED , CLOUD_WRAP_EVT_CLOUD_LOCATION_RESULT_RECEIVED , CLOUD_WRAP_EVT_REBOOT_REQUEST ,
  CLOUD_WRAP_EVT_LTE_CONNECT_REQUEST , CLOUD_WRAP_EVT_LTE_DISCONNECT_REQUEST , CLOUD_WRAP_EVT_FOTA_DONE , CLOUD_WRAP_EVT_FOTA_START ,
  CLOUD_WRAP_EVT_FOTA_ERASE_PENDING , CLOUD_WRAP_EVT_FOTA_ERASE_DONE , CLOUD_WRAP_EVT_FOTA_ERROR , CLOUD_WRAP_EVT_ERROR
}
 

Functions

int cloud_wrap_init (cloud_wrap_evt_handler_t event_handler)
 Setup and initialize the configured cloud integration layer.
 
int cloud_wrap_connect (void)
 Connect to cloud.
 
int cloud_wrap_disconnect (void)
 Disconnect from cloud.
 
int cloud_wrap_state_get (bool ack, uint32_t id)
 Request device state from cloud. The device state contains the device configuration.
 
int cloud_wrap_state_send (char *buf, size_t len, bool ack, uint32_t id)
 Send device state data to cloud.
 
int cloud_wrap_data_send (char *buf, size_t len, bool ack, uint32_t id, const struct lwm2m_obj_path path_list[])
 Send data to cloud.
 
int cloud_wrap_batch_send (char *buf, size_t len, bool ack, uint32_t id)
 Send batched data to cloud.
 
int cloud_wrap_ui_send (char *buf, size_t len, bool ack, uint32_t id, const struct lwm2m_obj_path path_list[])
 Send UI data to cloud.
 
int cloud_wrap_cloud_location_send (char *buf, size_t len, bool ack, uint32_t id)
 Send cloud location data to cloud.
 
bool cloud_wrap_cloud_location_response_wait (void)
 Indicates whether cloud implementation can and is configured to return the resolved location back to the device.
 
int cloud_wrap_agnss_request_send (char *buf, size_t len, bool ack, uint32_t id)
 Send A-GNSS request to cloud.
 
int cloud_wrap_pgps_request_send (char *buf, size_t len, bool ack, uint32_t id)
 Send P-GPS request to cloud.
 
int cloud_wrap_memfault_data_send (char *buf, size_t len, bool ack, uint32_t id)
 Send Memfault data to cloud.
 

Detailed Description

A Library that exposes generic functionality of cloud integration layers.