API  2.2
TSmarT Software Library
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
tsmart_cumulocity.h
1 
12 #ifndef TSMART_CUMULOCITY_H_
13 #define TSMART_CUMULOCITY_H_
14 
15 /*--------------------------------------------------- interface selection ------------------------------------------------*/
16 #ifdef _USE_MIDDLEWARE_ETHERNET
17  #define PR_TSMART_CUMULOCITY_ETHERNET
18 #endif
19 #ifdef _USE_MIDDLEWARE_CELLULAR_2G
20  #define PR_TSMART_CUMULOCITY_CELLULAR_2G
21 #endif
22 #ifdef _USE_MIDDLEWARE_WIFI
23  #define PR_TSMART_CUMULOCITY_WIFI
24 #endif
25 /*--------------------------------------------------- Platform headers --------------------------------------------------*/
26 #include <stdint.h>
27 #include <string.h>
28 #include <stdio.h>
29 /* FreeRTOS headers */
30 #include "FreeRTOS.h"
31 #include "task.h"
32 #include "queue.h"
33 #include "semphr.h"
34 #include "timers.h"
35 #include "tsmart_defs.h"
36 
37 #ifdef PR_TSMART_CUMULOCITY_ETHERNET
38 /* Specific headers for the Ethernet interface */
39 #include "tsmart_lwip_headers.h"
40 #endif
41 #ifdef PR_TSMART_CUMULOCITY_CELLULAR_2G
42 #include "tsmart_cellular_2g.h"
43 #endif
44 #ifdef PR_TSMART_CUMULOCITY_WIFI
45 #include "tsmart_wifi_headers.h"
46 #endif
47 
58 /*--------------------------------------------------- Well-known definitions -----------------------------------------------------------*/
59 #define PR_TSMART_CUMULOCITY_MAXIMUN_BUFFER_SIZE 2000
60 /*--------------------------------------------------- Typical fault codes --------------------------------------------------------------*/
61 #define TSMART_CUMULOCITY_FAULT_CODE1 -1
62 #define TSMART_CUMULOCITY_FAULT_CODE2 -2
63 #define TSMART_CUMULOCITY_FAULT_CODE3 -3
64 #define TSMART_CUMULOCITY_FAULT_CODE4 -4
77 typedef struct{
78  uint8_t v0;
79  uint8_t v1;
80  uint8_t v2;
81  uint8_t v3;
83 
84 
87 typedef enum{
92 
93 
94 #pragma pack (1)
95 
97 typedef struct{
100 
104 typedef struct{
106  int32_t *value;
108 
112 typedef struct{
114  double *value;
116 
120 typedef struct{
122  uint8_t *value;
124 
125 #pragma pack ()
126 
130 typedef union{
136 
140 typedef struct{
141  uint16_t year;
142  uint8_t month;
143  uint8_t day;
144  uint8_t hour;
145  uint8_t minute;
146  uint8_t second;
148 
152 typedef struct{
153  uint8_t *name;
154  uint8_t *unit;
158 
159 
163 typedef struct{
164  uint8_t *tenant;
165  uint8_t *username;
166  uint8_t *password;
167  uint8_t *api_key;
168  uint8_t *authorization;
170 
174 typedef struct{
175  uint8_t *name;
176  uint8_t *type;
177  uint32_t id;
178  uint8_t *model;
179  uint8_t *serial_number;
180  uint8_t *revision;
182 
186 typedef enum{
191 
195 typedef enum{
201 
205 typedef struct{
206  uint32_t id;
207  uint8_t *type;
208  uint8_t *text;
213 
217 typedef struct{
218  uint32_t id;
219  uint8_t *type;
220  uint8_t *text;
223 
227 typedef struct{
228  uint8_t *name;
231 
235 typedef struct{
236  uint32_t id;
237  uint8_t *model;
238  uint8_t n_param;
241 
245 typedef enum{
251 
252 
261 typedef struct{
262  uint8_t buffer[PR_TSMART_CUMULOCITY_MAXIMUN_BUFFER_SIZE];
264 
265 
266 /*--------------------------------------------------- WIFI structures -----------------------------------------------------------------------*/
267 #ifdef PR_TSMART_CUMULOCITY_WIFI
268 
272 typedef enum{
274  TSMART_CUMULOCITY_WIFI_WEP = WLAN_SEC_WEP,
275  TSMART_CUMULOCITY_WIFI_WPA = WLAN_SEC_WPA,
276  TSMART_CUMULOCITY_WIFI_WPA2 = WLAN_SEC_WPA2,
278 
279 
283 typedef struct{
288  uint8_t *ssid;
289  uint8_t *key;
290  uint8_t key_length;
293 
294 #endif
295 /*--------------------------------------------------- Ethernet structures -------------------------------------------------------------------*/
296 #ifdef PR_TSMART_CUMULOCITY_ETHERNET
297 
301 typedef struct{
305 }tsmart_cumulocity_ethernet_ipv4_addr_t;
306 
307 #endif
308 /*--------------------------------------------------- Cellular 2G structures -----------------------------------------------------------------*/
309 #ifdef PR_TSMART_CUMULOCITY_CELLULAR_2G
310 
311 
315 typedef enum{
319 
320 
324 typedef enum{
328 
329 
330 
334 typedef struct{
335  uint8_t *apn;
336  uint8_t *login;
337  uint8_t *password;
338  uint16_t time_to_connect;
342 
346 typedef struct{
347  uint8_t *pin_code;
353  uint8_t ip_ttl;
366  uint16_t ip_frag_timeo;
372  uint16_t tcp_maxinitwin;
379  uint8_t tcp_rexmt_max;
385 #endif
386 
391 /*--------------------------------------------------- Functions----------------------------------------------------------------------*/
395 #ifdef PR_TSMART_CUMULOCITY_CELLULAR_2G
397 int8_t TSMART_CUMULOCITY_CELLULAR_2G_Start(tsmart_cumulocity_cellular_2g_config_t *TSMART_CUMULOCITY_CELLULLAR_2G_config);
402 #endif
403 #ifdef PR_TSMART_CUMULOCITY_ETHERNET
404 int8_t TSMART_CUMULOCITY_ETHERNET_Init(tsmart_cumulocity_ethernet_ipv4_addr_t *TSMART_CUMULOCITY_ETHERNET_ipv4_addr);
405 #endif
406 #ifdef PR_TSMART_CUMULOCITY_WIFI
407 int8_t TSMART_CUMULOCITY_WIFI_Init(void);
408 int8_t TSMART_CUMULOCITY_WIFI_Start(void);
409 void TSMART_CUMULOCITY_WIFI_Stop(void);
410 int8_t TSMART_CUMULOCITY_WIFI_ConnectToAP(tsmart_cumulocity_wifi_wlan_t *TSMART_CUMULOCITY_WIFI_wlan);
412 #endif
413 /* Common functions */
414 int8_t TSMART_CUMULOCITY_ReadIP(tsmart_cumulocity_ipv4_format_t *TSMART_CUMULOCITY_ipv4_format);
415 void TSMART_CUMULOCITY_Base64Encoder(tsmart_cumulocity_account_t *TSMART_CUMULOCITY_account, tsmart_cumulocity_buffer_t *TSMART_CUMULOCITY_buffer, uint8_t *TSMART_CUMULOCITY_output);
416 int8_t TSMART_CUMULOCITY_RegiserDevice(tsmart_cumulocity_account_t *TSMART_CUMULOCITY_account, tsmart_cumulocity_device_t *TSMART_CUMULOCITY_device, tsmart_cumulocity_buffer_t *TSMART_CUMULOCITY_buffer);
417 int8_t TSMART_CUMULOCITY_RegisterMesurment(tsmart_cumulocity_account_t *TSMART_CUMULOCITY_account, uint32_t TSMART_CUMULOCITY_device_id, tsmart_cumulocity_sensor_t *TSMART_CUMULOCITY_sensor, uint8_t TSMART_CUMULOCITY_n_sensors, tsmart_cumulocity_buffer_t *TSMART_CUMULOCITY_buffer);
418 int8_t TSMART_CUMULOCITY_RegisterOperation(tsmart_cumulocity_account_t *TSMART_CUMULOCITY_account, uint32_t TSMART_CUMULOCITY_device_id, tsmart_cumulocity_op_t *TSMART_CUMULOCITY_op, uint8_t TSMART_CUMULOCITY_n_ops, tsmart_cumulocity_buffer_t *TSMART_CUMULOCITY_buffer);
419 int8_t TSMART_CUMULOCITY_UnregisterDevice(tsmart_cumulocity_account_t *TSMART_CUMULOCITY_account, uint32_t TSMART_CUMULOCITY_device_id, tsmart_cumulocity_buffer_t *TSMART_CUMULOCITY_buffer);
420 int8_t TSMART_CUMULOCITY_SendMeasurement(tsmart_cumulocity_account_t *TSMART_CUMULOCITY_account, uint32_t TSMART_CUMULOCITY_device_id, uint8_t *TSMART_CUMULOCITY_type, tsmart_cumulocity_sensor_t *TSMART_CUMULOCITY_sensors, uint8_t TSMART_CUMULOCITY_n_sensor, tsmart_cumulocity_buffer_t *TSMART_CUMULOCITY_buffer);
421 int8_t TSMART_CUMULOCITY_RiseAlarm(tsmart_cumulocity_account_t *TSMART_CUMULOCITY_account, uint32_t TSMART_CUMULOCITY_device_id, tsmart_cumulocity_alarm_t *TSMART_CUMULOCITY_alarm, tsmart_cumulocity_buffer_t *TSMART_CUMULOCITY_buffer);
422 int8_t TSMART_CUMULOCITY_UpdateAlarm(tsmart_cumulocity_account_t *TSMART_CUMULOCITY_account, uint32_t TSMART_CUMULOCITY_device_id, tsmart_cumulocity_alarm_t *TSMART_CUMULOCITY_alarm, tsmart_cumulocity_buffer_t *TSMART_CUMULOCITY_buffer);
423 int8_t TSMART_CUMULOCITY_CreateEvent(tsmart_cumulocity_account_t *TSMART_CUMULOCITY_account, uint32_t TSMART_CUMULOCITY_device_id, tsmart_cumulocity_event_t *TSMART_CUMULOCITY_event, tsmart_cumulocity_buffer_t *TSMART_CUMULOCITY_buffer);
424 int8_t TSMART_CUMULOCITY_DeleteEvent(tsmart_cumulocity_account_t *TSMART_CUMULOCITY_account, uint32_t TSMART_CUMULOCITY_event_id, tsmart_cumulocity_buffer_t *TSMART_CUMULOCITY_buffer);
425 int8_t TSMART_CUMULOCITY_CreateOperation(tsmart_cumulocity_account_t *TSMART_CUMULOCITY_account, uint32_t TSMART_CUMULOCITY_device_id, tsmart_cumulocity_op_t *TSMART_CUMULOCITY_op, tsmart_cumulocity_buffer_t *TSMART_CUMULOCITY_buffer);
426 int8_t TSMART_CUMULOCITY_GetOperation(tsmart_cumulocity_account_t *TSMART_CUMULOCITY_account, uint32_t TSMART_CUMULOCITY_device_id, tsmart_cumulotity_status_op_t TSMART_CUMULOCITY_status_op, uint8_t TSMART_CUMULOCY_n_ops, tsmart_cumulocity_op_t *TSMART_CUMULOCITY_op, tsmart_cumulocity_buffer_t *TSMART_CUMULOCITY_buffer);
427 int8_t TSMART_CUMULOCITY_GetRawOperation(tsmart_cumulocity_account_t *TSMART_CUMULOCITY_account, uint32_t TSMART_CUMULOCITY_device_id, tsmart_cumulotity_status_op_t TSMART_CUMULOCITY_status_op, uint32_t *TSMART_CUMULOCY_op_id, uint8_t *TSMART_CUMULOCITY_op_raw_buffer, tsmart_cumulocity_buffer_t *TSMART_CUMULOCITY_buffer);
428 int8_t TSMART_CUMULOCITY_UpdateStatusOperation(tsmart_cumulocity_account_t *TSMART_CUMULOCITY_account, uint32_t TSMART_CUMULOCITY_op_id, tsmart_cumulotity_status_op_t TSMART_CUMULOCITY_status_op, uint8_t *TSMART_CUMULOCITY_failure_message, tsmart_cumulocity_buffer_t *TSMART_CUMULOCITY_buffer);
429 
442 #endif /* TSMART_CUMULOCITY_H_ */
int8_t TSMART_CUMULOCITY_CreateOperation(tsmart_cumulocity_account_t *TSMART_CUMULOCITY_account, uint32_t TSMART_CUMULOCITY_device_id, tsmart_cumulocity_op_t *TSMART_CUMULOCITY_op, tsmart_cumulocity_buffer_t *TSMART_CUMULOCITY_buffer)
Creates an operation.
Definition: tsmart_cumulocity.c:2978
tsmart_cumulocity_alarm_severity severity
Definition: tsmart_cumulocity.h:210
uint8_t * tenant
Definition: tsmart_cumulocity.h:164
Event structure.
Definition: tsmart_cumulocity.h:217
tsmart_cumulocity_cellular_2g_flag_t
Standard flag to enable/disable.
Definition: tsmart_cumulocity.h:324
tsmart_cumulocity_ipv4_format_t ip
Definition: tsmart_cumulocity.h:284
uint8_t v3
Definition: tsmart_cumulocity.h:81
int8_t TSMART_CUMULOCITY_CELLULAR_2G_NetworkAttachment(tsmart_cumulocity_cellular_2g_network_t *TSMART_CUMULOCITY_CELLULAR_2G_network)
Attaches to the 2G network.
Definition: tsmart_cumulocity.c:195
Definition: tsmart_cumulocity.h:249
int8_t TSMART_CUMULOCITY_RegisterOperation(tsmart_cumulocity_account_t *TSMART_CUMULOCITY_account, uint32_t TSMART_CUMULOCITY_device_id, tsmart_cumulocity_op_t *TSMART_CUMULOCITY_op, uint8_t TSMART_CUMULOCITY_n_ops, tsmart_cumulocity_buffer_t *TSMART_CUMULOCITY_buffer)
Registers an operation.
Definition: tsmart_cumulocity.c:1395
uint8_t n_param
Definition: tsmart_cumulocity.h:238
tsmart_cumulocity_wifi_key_type_t key_type
Definition: tsmart_cumulocity.h:291
uint8_t v2
Definition: tsmart_cumulocity.h:80
tsmart_cumulocity_cellular_2g_flag_t iled
Definition: tsmart_cumulocity.h:349
uint32_t id
Definition: tsmart_cumulocity.h:218
Cumulocity internal buffer structure.
Definition: tsmart_cumulocity.h:261
tsmart_cumulocity_double_value_t double_value
Definition: tsmart_cumulocity.h:132
uint8_t * pin_code
Definition: tsmart_cumulocity.h:347
uint8_t * password
Definition: tsmart_cumulocity.h:337
uint8_t v0
Definition: tsmart_cumulocity.h:78
uint16_t year
Definition: tsmart_cumulocity.h:141
tsmart_cumulocity_time_t time
Definition: tsmart_cumulocity.h:221
uint8_t * text
Definition: tsmart_cumulocity.h:208
uint8_t * model
Definition: tsmart_cumulocity.h:237
void TSMART_CUMULOCITY_WIFI_Stop(void)
Stops the wifi interface.
Definition: tsmart_cumulocity.c:612
Definition: tsmart_cumulocity.h:248
uint8_t key_length
Definition: tsmart_cumulocity.h:290
uint8_t * username
Definition: tsmart_cumulocity.h:165
tsmart_cumulocity_alarm_status_t status
Definition: tsmart_cumulocity.h:209
tsmart_cumulotity_status_op_t
status operation structure
Definition: tsmart_cumulocity.h:245
int8_t TSMART_CUMULOCITY_WIFI_Start(void)
Starts the wifi interface.
Definition: tsmart_cumulocity.c:590
int8_t TSMART_CUMULOCITY_RiseAlarm(tsmart_cumulocity_account_t *TSMART_CUMULOCITY_account, uint32_t TSMART_CUMULOCITY_device_id, tsmart_cumulocity_alarm_t *TSMART_CUMULOCITY_alarm, tsmart_cumulocity_buffer_t *TSMART_CUMULOCITY_buffer)
Rises an Alarm.
Definition: tsmart_cumulocity.c:2104
uint8_t * api_key
Definition: tsmart_cumulocity.h:167
Definition: tsmart_cumulocity.h:273
uint8_t * model
Definition: tsmart_cumulocity.h:178
tsmart_cumulocity_alarm_status_t
Type of status alarm.
Definition: tsmart_cumulocity.h:186
uint8_t * login
Definition: tsmart_cumulocity.h:336
Definition: tsmart_cumulocity.h:247
tsmart_cumulocity_value_type_id_t value_type_id
Definition: tsmart_cumulocity.h:98
uint8_t * type
Definition: tsmart_cumulocity.h:219
Definition: tsmart_cumulocity.h:188
int8_t TSMART_CUMULOCITY_GetOperation(tsmart_cumulocity_account_t *TSMART_CUMULOCITY_account, uint32_t TSMART_CUMULOCITY_device_id, tsmart_cumulotity_status_op_t TSMART_CUMULOCITY_status_op, uint8_t TSMART_CUMULOCY_n_ops, tsmart_cumulocity_op_t *TSMART_CUMULOCITY_op, tsmart_cumulocity_buffer_t *TSMART_CUMULOCITY_buffer)
Gets the last operation available.
Definition: tsmart_cumulocity.c:3326
Integer value.
Definition: tsmart_cumulocity.h:104
int8_t TSMART_CUMULOCITY_CELLULAR_2G_NetworkDeAtachment(void)
Network detachment.
Definition: tsmart_cumulocity.c:258
tsmart_cumulocity_cellular_2g_notif_t TSMART_CUMULOCITY_CELLULAR_2G_Notifications(void)
Waits for 2G notification.
Definition: tsmart_cumulocity.c:339
tsmart_cumulocity_cellular_2g_notif_t
2g notification type
Definition: tsmart_cumulocity.h:315
Definition: tsmart_cumulocity.h:325
tsmart_cumulocity_value_t value
Definition: tsmart_cumulocity.h:155
uint16_t ip_frag_timeo
Definition: tsmart_cumulocity.h:366
uint8_t v1
Definition: tsmart_cumulocity.h:79
tsmart_cumulocity_time_t time
Definition: tsmart_cumulocity.h:156
uint8_t * type
Definition: tsmart_cumulocity.h:176
int8_t TSMART_CUMULOCITY_WIFI_Init(void)
Initializes WIFI interface.
Definition: tsmart_cumulocity.c:536
int8_t TSMART_CUMULOCITY_GetRawOperation(tsmart_cumulocity_account_t *TSMART_CUMULOCITY_account, uint32_t TSMART_CUMULOCITY_device_id, tsmart_cumulotity_status_op_t TSMART_CUMULOCITY_status_op, uint32_t *TSMART_CUMULOCITY_op_id, uint8_t *TSMART_CUMULOCITY_op_raw_buffer, tsmart_cumulocity_buffer_t *TSMART_CUMULOCITY_buffer)
Gets the last operation available.
Definition: tsmart_cumulocity.c:3576
Wireless Network parameters structure.
Definition: tsmart_cumulocity.h:283
uint8_t hour
Definition: tsmart_cumulocity.h:144
tsmart_cumulocity_ipv4_format_t dns
Definition: tsmart_cumulocity.h:287
Definition: tsmart_cumulocity.h:198
Definition: tsmart_cumulocity.h:274
Account details structure.
Definition: tsmart_cumulocity.h:163
uint8_t month
Definition: tsmart_cumulocity.h:142
int8_t TSMART_CUMULOCITY_WIFI_DisconnectfromAP(void)
Disconnects form the access point.
Definition: tsmart_cumulocity.c:688
tsmart_cumulocity_integer_value_t integer_value
Definition: tsmart_cumulocity.h:133
int8_t TSMART_CUMULOCITY_WIFI_ConnectToAP(tsmart_cumulocity_wifi_wlan_t *TSMART_CUMULOCITY_WIFI_wlan)
Connects to an access point.
Definition: tsmart_cumulocity.c:626
IPv4 format structure.
Definition: tsmart_cumulocity.h:77
Device structure.
Definition: tsmart_cumulocity.h:174
uint8_t day
Definition: tsmart_cumulocity.h:143
uint8_t * type
Definition: tsmart_cumulocity.h:207
tsmart_cumulocity_value_type_id_t value_type_id
Definition: tsmart_cumulocity.h:113
Cellular 2g parameters structure.
Definition: tsmart_cumulocity.h:346
int8_t TSMART_CUMULOCITY_UpdateStatusOperation(tsmart_cumulocity_account_t *TSMART_CUMULOCITY_account, uint32_t TSMART_CUMULOCITY_op_id, tsmart_cumulotity_status_op_t TSMART_CUMULOCITY_status_op, uint8_t *TSMART_CUMULOCITY_failure_message, tsmart_cumulocity_buffer_t *TSMART_CUMULOCITY_buffer)
Updates a status operation.
Definition: tsmart_cumulocity.c:3765
uint8_t * ssid
Definition: tsmart_cumulocity.h:288
tsmart_cumulocity_ipv4_format_t mask
Definition: tsmart_cumulocity.h:285
tsmart_cumulocity_alarm_severity
Type of severity alarm.
Definition: tsmart_cumulocity.h:195
Definition: tsmart_cumulocity.h:316
int32_t * value
Definition: tsmart_cumulocity.h:106
Definition: tsmart_cumulocity.h:187
int8_t TSMART_CUMULOCITY_CELLULAR_2G_Start(tsmart_cumulocity_cellular_2g_config_t *TSMART_CUMULOCITY_CELLULLAR_2G_config)
Starts cellular 2g interface.
Definition: tsmart_cumulocity.c:126
tsmart_cumulocity_value_t value
Definition: tsmart_cumulocity.h:229
uint32_t id
Definition: tsmart_cumulocity.h:236
int8_t TSMART_CUMULOCITY_UnregisterDevice(tsmart_cumulocity_account_t *TSMART_CUMULOCITY_account, uint32_t TSMART_CUMULOCITY_device_id, tsmart_cumulocity_buffer_t *TSMART_CUMULOCITY_buffer)
Unregisters a device.
Definition: tsmart_cumulocity.c:1621
Definition: tsmart_cumulocity.h:199
tsmart_cumulocity_value_type_t value_type
Definition: tsmart_cumulocity.h:131
uint8_t tcp_rexmt_max
Definition: tsmart_cumulocity.h:379
uint8_t * name
Definition: tsmart_cumulocity.h:175
uint8_t * name
Definition: tsmart_cumulocity.h:153
uint32_t id
Definition: tsmart_cumulocity.h:177
int8_t TSMART_CUMULOCITY_CELLULAR_2G_Init(void)
Initializes cellular 2G interface.
Definition: tsmart_cumulocity.c:97
uint8_t minute
Definition: tsmart_cumulocity.h:145
Indicator of value type structure.
Definition: tsmart_cumulocity.h:97
uint16_t time_to_connect
Definition: tsmart_cumulocity.h:338
double * value
Definition: tsmart_cumulocity.h:114
Cellular 2g network parameters structure.
Definition: tsmart_cumulocity.h:334
Double value.
Definition: tsmart_cumulocity.h:112
Definition: tsmart_cumulocity.h:246
Alarm structure.
Definition: tsmart_cumulocity.h:205
String value.
Definition: tsmart_cumulocity.h:120
int8_t TSMART_CUMULOCITY_SendMeasurement(tsmart_cumulocity_account_t *TSMART_CUMULOCITY_account, uint32_t TSMART_CUMULOCITY_device_id, uint8_t *TSMART_CUMULOCITY_type, tsmart_cumulocity_sensor_t *TSMART_CUMULOCITY_sensor, uint8_t TSMART_CUMULOCITY_n_sensor, tsmart_cumulocity_buffer_t *TSMART_CUMULOCITY_buffer)
Sends measurement.
Definition: tsmart_cumulocity.c:1765
tsmart_cumulocity_value_type_id_t value_type_id
Definition: tsmart_cumulocity.h:121
uint32_t id
Definition: tsmart_cumulocity.h:206
uint8_t * text
Definition: tsmart_cumulocity.h:220
int8_t TSMART_CUMULOCITY_RegisterMesurment(tsmart_cumulocity_account_t *TSMART_CUMULOCITY_account, uint32_t TSMART_CUMULOCITY_device_id, tsmart_cumulocity_sensor_t *TSMART_CUMULOCITY_sensor, uint8_t TSMART_CUMULOCITY_n_sensors, tsmart_cumulocity_buffer_t *TSMART_CUMULOCITY_buffer)
Registers measurements.
Definition: tsmart_cumulocity.c:1168
int8_t TSMART_CUMULOCITY_CreateEvent(tsmart_cumulocity_account_t *TSMART_CUMULOCITY_account, uint32_t TSMART_CUMULOCITY_device_id, tsmart_cumulocity_event_t *TSMART_CUMULOCITY_event, tsmart_cumulocity_buffer_t *TSMART_CUMULOCITY_buffer)
Creates an event.
Definition: tsmart_cumulocity.c:2614
uint8_t ip_ttl
Definition: tsmart_cumulocity.h:353
tsmart_cumulocity_time_t time
Definition: tsmart_cumulocity.h:211
param structure
Definition: tsmart_cumulocity.h:227
uint8_t * authorization
Definition: tsmart_cumulocity.h:168
int8_t TSMART_CUMULOCITY_DeleteEvent(tsmart_cumulocity_account_t *TSMART_CUMULOCITY_account, uint32_t TSMART_CUMULOCITY_event_id, tsmart_cumulocity_buffer_t *TSMART_CUMULOCITY_buffer)
Deletes an event.
Definition: tsmart_cumulocity.c:2831
tsmart_cumulocity_value_type_id_t
Types of values.
Definition: tsmart_cumulocity.h:87
Definition: tsmart_cumulocity.h:90
tsmart_cumulocity_value_type_id_t value_type_id
Definition: tsmart_cumulocity.h:105
uint8_t * value
Definition: tsmart_cumulocity.h:122
Definition: tsmart_cumulocity.h:189
Definition: tsmart_cumulocity.h:276
Definition: tsmart_cumulocity.h:197
Definition: tsmart_cumulocity.h:89
uint8_t * name
Definition: tsmart_cumulocity.h:228
tsmart_cumulocity_str_t str_value
Definition: tsmart_cumulocity.h:134
Time structure.
Definition: tsmart_cumulocity.h:140
tsmart_cumulocity_wifi_key_type_t
Security options.
Definition: tsmart_cumulocity.h:272
tsmart_cumulocity_param_t * param
Definition: tsmart_cumulocity.h:239
operation structure
Definition: tsmart_cumulocity.h:235
Definition: tsmart_cumulocity.h:196
uint8_t * key
Definition: tsmart_cumulocity.h:289
int8_t TSMART_CUMULOCITY_UpdateAlarm(tsmart_cumulocity_account_t *TSMART_CUMULOCITY_account, uint32_t TSMART_CUMULOCITY_device_id, tsmart_cumulocity_alarm_t *TSMART_CUMULOCITY_alarm, tsmart_cumulocity_buffer_t *TSMART_CUMULOCITY_buffer)
Updates an Alarm.
Definition: tsmart_cumulocity.c:2374
uint8_t tcp_rexmt_maxcnt
Definition: tsmart_cumulocity.h:382
uint8_t * unit
Definition: tsmart_cumulocity.h:154
Definition: tsmart_cumulocity.h:88
Mesurement structure.
Definition: tsmart_cumulocity.h:152
uint8_t * revision
Definition: tsmart_cumulocity.h:180
int8_t TSMART_CUMULOCITY_CELLULAR_2G_Stop(void)
Stops cellular 2G interface.
Definition: tsmart_cumulocity.c:171
Definition: tsmart_cumulocity.h:326
int8_t TSMART_CUMULOCITY_RegiserDevice(tsmart_cumulocity_account_t *TSMART_CUMULOCITY_account, tsmart_cumulocity_device_t *TSMART_CUMULOCITY_device, tsmart_cumulocity_buffer_t *TSMART_CUMULOCITY_buffer)
Registers a device.
Definition: tsmart_cumulocity.c:972
uint8_t * password
Definition: tsmart_cumulocity.h:166
tsmart_cumulocity_ipv4_format_t ip_gw
Definition: tsmart_cumulocity.h:286
uint8_t second
Definition: tsmart_cumulocity.h:146
int8_t TSMART_CUMULOCITY_ReadIP(tsmart_cumulocity_ipv4_format_t *TSMART_CUMULOCITY_ipv4_format)
Reads the current IP address.
Definition: tsmart_cumulocity.c:743
uint8_t * serial_number
Definition: tsmart_cumulocity.h:179
Union of the possible type values.
Definition: tsmart_cumulocity.h:130
uint16_t tcp_maxinitwin
Definition: tsmart_cumulocity.h:372
Definition: tsmart_cumulocity.h:317
void TSMART_CUMULOCITY_Base64Encoder(tsmart_cumulocity_account_t *TSMART_CUMULOCITY_account, tsmart_cumulocity_buffer_t *TSMART_CUMULOCITY_buffer, uint8_t *TSMART_CUMULOCITY_output)
Base64 encoder.
Definition: tsmart_cumulocity.c:902
uint8_t * apn
Definition: tsmart_cumulocity.h:335
Definition: tsmart_cumulocity.h:275