29 #define ASTARTE_UUID_LEN 39
56 #define EDGEHOG_VALIDATE_INCOMING_DATA(TAG, EVENT_REQUEST, PATH, BSON_TYPE) \
57 if ((EVENT_REQUEST)->bson_element.type != (BSON_TYPE) \
58 || strcmp((EVENT_REQUEST)->path, (PATH)) != 0) { \
59 ESP_LOGE(TAG, "Unable to handle request on %s having type code %i", (EVENT_REQUEST)->path, \
60 (EVENT_REQUEST)->bson_element.type); \
edgehog_err_t
Edgehog return codes.
Definition: edgehog.h:39
@ EDGEHOG_ERR_TASK_CREATE
Definition: edgehog.h:50
@ EDGEHOG_ERR_OTA_INVALID_REQUEST
Definition: edgehog.h:44
@ EDGEHOG_ERR_OTA_CANCELED
Definition: edgehog.h:48
@ EDGEHOG_ERR_NETWORK
Definition: edgehog.h:42
@ EDGEHOG_ERR
Definition: edgehog.h:41
@ EDGEHOG_ERR_OTA_ALREADY_IN_PROGRESS
Definition: edgehog.h:45
@ EDGEHOG_ERR_OTA_SYSTEM_ROLLBACK
Definition: edgehog.h:47
@ EDGEHOG_ERR_DEVICE_NOT_READY
Definition: edgehog.h:51
@ EDGEHOG_ERR_NVS
Definition: edgehog.h:43
@ EDGEHOG_ERR_OTA_INTERNAL
Definition: edgehog.h:49
@ EDGEHOG_OK
Definition: edgehog.h:40
@ EDGEHOG_ERR_OTA_INVALID_IMAGE
Definition: edgehog.h:46