Skip to content

Commit 8b54704

Browse files
committed
IDF5.0 support: fix incompatible types
Signed-off-by: Simone Orru <simone.orru@secomind.com>
1 parent 00a2332 commit 8b54704

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

examples/edgehog_app/main/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ static void event_handler(
5454
ESP_LOGI(TAG, "got ip:" IPSTR, IP2STR(&event->ip_info.ip));
5555
xEventGroupSetBits(wifi_event_group, WIFI_CONNECTED_BIT);
5656
} else if (event_base == EDGEHOG_EVENTS) {
57-
ESP_LOGI(TAG, "EDGEHOG EVENT RECEIVED %d", event_id);
57+
ESP_LOGI(TAG, "EDGEHOG EVENT RECEIVED %" PRIi32 "", event_id);
5858
}
5959
}
6060

src/edgehog_command.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ edgehog_err_t edgehog_command_event(astarte_device_data_event_t *event_request)
3737
{
3838
EDGEHOG_VALIDATE_INCOMING_DATA(TAG, event_request, "/request", BSON_TYPE_STRING);
3939

40-
size_t len;
40+
uint32_t len;
4141
const char *command = astarte_bson_value_to_string(event_request->bson_value, &len);
4242

4343
if (strcmp(command, "Reboot") == 0) {

src/edgehog_ota.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ edgehog_err_t edgehog_ota_event(
157157
EDGEHOG_VALIDATE_INCOMING_DATA(TAG, event_request, "/request", BSON_TYPE_DOCUMENT);
158158

159159
uint8_t type;
160-
size_t str_value_len;
160+
uint32_t str_value_len;
161161

162162
const void *found = astarte_bson_key_lookup("uuid", event_request->bson_value, &type);
163163
const char *request_uuid = astarte_bson_value_to_string(found, &str_value_len);

0 commit comments

Comments
 (0)