Skip to content

Commit

Permalink
Update astarte-device-sdk-esp32 dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaato committed Aug 8, 2024
1 parent f9700af commit fd01b64
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions examples/edgehog_app/main/src/example_task.c
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ static astarte_device_handle_t astarte_device_sdk_init(void)
}

// Initialize the credentials for the Astarte device
if(astarte_credentials_init() != ASTARTE_OK) {
if (astarte_credentials_init() != ASTARTE_OK) {
ESP_LOGE(TAG, "Failed initializing the Astarte credentials.");
return NULL;
}
Expand All @@ -158,7 +158,8 @@ static astarte_device_handle_t astarte_device_sdk_init(void)
return astarte_device;
}

static edgehog_device_handle_t edgehog_device_init(astarte_device_handle_t astarte_handle) {
static edgehog_device_handle_t edgehog_device_init(astarte_device_handle_t astarte_handle)
{
// Setup the event handler for the Edgehog device
esp_err_t esp_err = esp_event_handler_instance_register(
EDGEHOG_EVENTS, ESP_EVENT_ANY_ID, edgehog_event_handler, NULL, NULL);
Expand Down Expand Up @@ -190,7 +191,8 @@ static edgehog_device_handle_t edgehog_device_init(astarte_device_handle_t astar
ESP_LOGE(TAG, "Failed setting the system serial number for Edgehog.");
return NULL;
}
esp_err = edgehog_device_set_system_part_number(edgehog_device, "edgehog_example_part_number_1");
esp_err
= edgehog_device_set_system_part_number(edgehog_device, "edgehog_example_part_number_1");
if (esp_err != ESP_OK) {
ESP_LOGE(TAG, "Failed setting the system part number for Edgehog.");
return NULL;
Expand Down
2 changes: 1 addition & 1 deletion idf_component.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@ dependencies:
# Required IDF version
idf: ">=4.1"
astarte-device-sdk-esp32:
version: "v1.2.0"
version: "v1.3.1"
git: https://github.com/astarte-platform/astarte-device-sdk-esp32.git

0 comments on commit fd01b64

Please sign in to comment.