nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches
cloud_module_event.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2021 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5 */
6
7#ifndef _CLOUD_MODULE_EVENT_H_
8#define _CLOUD_MODULE_EVENT_H_
9
16#include <app_event_manager.h>
18#include <qos.h>
19#if defined(CONFIG_LOCATION)
20#include <modem/location.h>
21#endif
22
24
25#ifdef __cplusplus
26extern "C" {
27#endif
28
33
36
39
42
50
58
61
64
67
72
77
80
83
86
89
92
95
104
109
115
119 void *ptr;
121 size_t len;
122};
123
127 struct app_event_header header;
130
131 union {
133 struct cloud_data_cfg config;
134#if defined(CONFIG_LOCATION)
136 struct location_data cloud_location;
137#endif
143 struct qos_data message;
145 uint32_t id;
147 int err;
149};
150
152
153#ifdef __cplusplus
154}
155#endif
156
161#endif /* _CLOUD_MODULE_EVENT_H_ */
Application Event Manager header.
Application Event Manager profiler tracer header.
#define APP_EVENT_TYPE_DECLARE(ename)
Declare an event type.
Definition: app_event_manager.h:143
cloud_module_event_type
Event types submitted by the cloud module.
Definition: cloud_module_event.h:30
@ CLOUD_EVT_CONNECTED
Definition: cloud_module_event.h:32
@ CLOUD_EVT_CONNECTING
Definition: cloud_module_event.h:38
@ CLOUD_EVT_USER_ASSOCIATION_REQUEST
Definition: cloud_module_event.h:60
@ CLOUD_EVT_CLOUD_LOCATION_RECEIVED
Definition: cloud_module_event.h:76
@ CLOUD_EVT_CLOUD_LOCATION_ERROR
Definition: cloud_module_event.h:79
@ CLOUD_EVT_CONFIG_RECEIVED
Definition: cloud_module_event.h:71
@ CLOUD_EVT_DATA_SEND_QOS
Definition: cloud_module_event.h:103
@ CLOUD_EVT_LTE_CONNECT
Definition: cloud_module_event.h:49
@ CLOUD_EVT_CLOUD_LOCATION_UNKNOWN
Definition: cloud_module_event.h:82
@ CLOUD_EVT_REBOOT_REQUEST
Definition: cloud_module_event.h:66
@ CLOUD_EVT_DISCONNECTED
Definition: cloud_module_event.h:35
@ CLOUD_EVT_USER_ASSOCIATED
Definition: cloud_module_event.h:63
@ CLOUD_EVT_ERROR
Definition: cloud_module_event.h:113
@ CLOUD_EVT_LTE_DISCONNECT
Definition: cloud_module_event.h:57
@ CLOUD_EVT_FOTA_DONE
Definition: cloud_module_event.h:91
@ CLOUD_EVT_FOTA_START
Definition: cloud_module_event.h:88
@ CLOUD_EVT_SHUTDOWN_READY
Definition: cloud_module_event.h:108
@ CLOUD_EVT_CONNECTION_TIMEOUT
Definition: cloud_module_event.h:41
@ CLOUD_EVT_FOTA_ERROR
Definition: cloud_module_event.h:94
@ CLOUD_EVT_CONFIG_EMPTY
Definition: cloud_module_event.h:85
Public APIs for the Location library.
Definition: cloud_codec.h:103
void * ptr
Definition: cloud_module_event.h:119
size_t len
Definition: cloud_module_event.h:121
Structure used to acknowledge messages sent to the cloud module.
Definition: cloud_module_event.h:117
struct app_event_header header
Definition: cloud_module_event.h:127
uint32_t id
Definition: cloud_module_event.h:145
union cloud_module_event::@8 data
enum cloud_module_event_type type
Definition: cloud_module_event.h:129
int err
Definition: cloud_module_event.h:147
Cloud module event.
Definition: cloud_module_event.h:125
Definition: location.h:249
Structure that contains the message payload and corresponding metadata.
Definition: qos.h:87