@@ -238,7 +238,7 @@ esp_err_t _mdns_send_rx_action(mdns_rx_packet_t * packet)
238
238
239
239
action -> type = ACTION_RX_HANDLE ;
240
240
action -> data .rx_handle .packet = packet ;
241
- if (xQueueSend (_mdns_server -> action_queue , & action , (portTickType )0 ) != pdPASS ) {
241
+ if (xQueueSend (_mdns_server -> action_queue , & action , (TickType_t )0 ) != pdPASS ) {
242
242
free (action );
243
243
return ESP_ERR_NO_MEM ;
244
244
}
@@ -4672,7 +4672,7 @@ static esp_err_t _mdns_send_search_action(mdns_action_type_t type, mdns_search_o
4672
4672
4673
4673
action -> type = type ;
4674
4674
action -> data .search_add .search = search ;
4675
- if (xQueueSend (_mdns_server -> action_queue , & action , (portTickType )0 ) != pdPASS ) {
4675
+ if (xQueueSend (_mdns_server -> action_queue , & action , (TickType_t )0 ) != pdPASS ) {
4676
4676
free (action );
4677
4677
return ESP_ERR_NO_MEM ;
4678
4678
}
@@ -4706,7 +4706,7 @@ static void _mdns_scheduler_run(void)
4706
4706
action -> type = ACTION_TX_HANDLE ;
4707
4707
action -> data .tx_handle .packet = p ;
4708
4708
p -> queued = true;
4709
- if (xQueueSend (_mdns_server -> action_queue , & action , (portTickType )0 ) != pdPASS ) {
4709
+ if (xQueueSend (_mdns_server -> action_queue , & action , (TickType_t )0 ) != pdPASS ) {
4710
4710
free (action );
4711
4711
p -> queued = false;
4712
4712
}
@@ -4854,7 +4854,7 @@ static esp_err_t _mdns_service_task_stop(void)
4854
4854
mdns_action_t action ;
4855
4855
mdns_action_t * a = & action ;
4856
4856
action .type = ACTION_TASK_STOP ;
4857
- if (xQueueSend (_mdns_server -> action_queue , & a , (portTickType )0 ) != pdPASS ) {
4857
+ if (xQueueSend (_mdns_server -> action_queue , & a , (TickType_t )0 ) != pdPASS ) {
4858
4858
vTaskDelete (_mdns_service_task_handle );
4859
4859
_mdns_service_task_handle = NULL ;
4860
4860
}
@@ -4897,7 +4897,7 @@ static void event_handler(void* arg, esp_event_base_t event_base,
4897
4897
action -> data .sys_event .interface = event -> esp_netif ;
4898
4898
}
4899
4899
4900
- if (xQueueSend (_mdns_server -> action_queue , & action , (portTickType )0 ) != pdPASS ) {
4900
+ if (xQueueSend (_mdns_server -> action_queue , & action , (TickType_t )0 ) != pdPASS ) {
4901
4901
free (action );
4902
4902
}
4903
4903
}
@@ -5056,7 +5056,7 @@ esp_err_t mdns_hostname_set(const char * hostname)
5056
5056
action -> type = ACTION_HOSTNAME_SET ;
5057
5057
action -> data .hostname_set .hostname = new_hostname ;
5058
5058
action -> data .hostname_set .calling_task = xTaskGetCurrentTaskHandle ();
5059
- if (xQueueSend (_mdns_server -> action_queue , & action , (portTickType )0 ) != pdPASS ) {
5059
+ if (xQueueSend (_mdns_server -> action_queue , & action , (TickType_t )0 ) != pdPASS ) {
5060
5060
free (new_hostname );
5061
5061
free (action );
5062
5062
return ESP_ERR_NO_MEM ;
@@ -5087,7 +5087,7 @@ esp_err_t mdns_delegate_hostname_add(const char * hostname, const mdns_ip_addr_t
5087
5087
action -> type = ACTION_DELEGATE_HOSTNAME_ADD ;
5088
5088
action -> data .delegate_hostname .hostname = new_hostname ;
5089
5089
action -> data .delegate_hostname .address_list = copy_address_list (address_list );
5090
- if (xQueueSend (_mdns_server -> action_queue , & action , (portTickType )0 ) != pdPASS ) {
5090
+ if (xQueueSend (_mdns_server -> action_queue , & action , (TickType_t )0 ) != pdPASS ) {
5091
5091
free (new_hostname );
5092
5092
free (action );
5093
5093
return ESP_ERR_NO_MEM ;
@@ -5116,7 +5116,7 @@ esp_err_t mdns_delegate_hostname_remove(const char * hostname)
5116
5116
}
5117
5117
action -> type = ACTION_DELEGATE_HOSTNAME_REMOVE ;
5118
5118
action -> data .delegate_hostname .hostname = new_hostname ;
5119
- if (xQueueSend (_mdns_server -> action_queue , & action , (portTickType )0 ) != pdPASS ) {
5119
+ if (xQueueSend (_mdns_server -> action_queue , & action , (TickType_t )0 ) != pdPASS ) {
5120
5120
free (new_hostname );
5121
5121
free (action );
5122
5122
return ESP_ERR_NO_MEM ;
@@ -5150,7 +5150,7 @@ esp_err_t mdns_instance_name_set(const char * instance)
5150
5150
}
5151
5151
action -> type = ACTION_INSTANCE_SET ;
5152
5152
action -> data .instance = new_instance ;
5153
- if (xQueueSend (_mdns_server -> action_queue , & action , (portTickType )0 ) != pdPASS ) {
5153
+ if (xQueueSend (_mdns_server -> action_queue , & action , (TickType_t )0 ) != pdPASS ) {
5154
5154
free (new_instance );
5155
5155
free (action );
5156
5156
return ESP_ERR_NO_MEM ;
@@ -5202,7 +5202,7 @@ esp_err_t mdns_service_add_for_host(const char * instance, const char * service,
5202
5202
}
5203
5203
action -> type = ACTION_SERVICE_ADD ;
5204
5204
action -> data .srv_add .service = item ;
5205
- if (xQueueSend (_mdns_server -> action_queue , & action , (portTickType )0 ) != pdPASS ) {
5205
+ if (xQueueSend (_mdns_server -> action_queue , & action , (TickType_t )0 ) != pdPASS ) {
5206
5206
_mdns_free_service (s );
5207
5207
free (item );
5208
5208
free (action );
@@ -5216,7 +5216,7 @@ esp_err_t mdns_service_add_for_host(const char * instance, const char * service,
5216
5216
if (expired >= timeout_ticks ) {
5217
5217
return ESP_FAIL ; // Timeout
5218
5218
}
5219
- vTaskDelay (MIN (10 / portTICK_RATE_MS , timeout_ticks - expired ));
5219
+ vTaskDelay (MIN (10 / portTICK_PERIOD_MS , timeout_ticks - expired ));
5220
5220
}
5221
5221
5222
5222
return ESP_OK ;
@@ -5260,7 +5260,7 @@ esp_err_t mdns_service_port_set_for_host(const char *instance, const char * serv
5260
5260
action -> type = ACTION_SERVICE_PORT_SET ;
5261
5261
action -> data .srv_port .service = s ;
5262
5262
action -> data .srv_port .port = port ;
5263
- if (xQueueSend (_mdns_server -> action_queue , & action , (portTickType )0 ) != pdPASS ) {
5263
+ if (xQueueSend (_mdns_server -> action_queue , & action , (TickType_t )0 ) != pdPASS ) {
5264
5264
free (action );
5265
5265
return ESP_ERR_NO_MEM ;
5266
5266
}
@@ -5304,7 +5304,7 @@ esp_err_t mdns_service_txt_set_for_host(const char * instance, const char * serv
5304
5304
action -> data .srv_txt_replace .service = s ;
5305
5305
action -> data .srv_txt_replace .txt = new_txt ;
5306
5306
5307
- if (xQueueSend (_mdns_server -> action_queue , & action , (portTickType )0 ) != pdPASS ) {
5307
+ if (xQueueSend (_mdns_server -> action_queue , & action , (TickType_t )0 ) != pdPASS ) {
5308
5308
_mdns_free_linked_txt (new_txt );
5309
5309
free (action );
5310
5310
return ESP_ERR_NO_MEM ;
@@ -5358,7 +5358,7 @@ esp_err_t mdns_service_txt_item_set_for_host_with_explicit_value_len(const char
5358
5358
action -> data .srv_txt_set .value = NULL ;
5359
5359
action -> data .srv_txt_set .value_len = 0 ;
5360
5360
}
5361
- if (xQueueSend (_mdns_server -> action_queue , & action , (portTickType )0 ) != pdPASS ) {
5361
+ if (xQueueSend (_mdns_server -> action_queue , & action , (TickType_t )0 ) != pdPASS ) {
5362
5362
free (action -> data .srv_txt_set .key );
5363
5363
free (action -> data .srv_txt_set .value );
5364
5364
free (action );
@@ -5417,7 +5417,7 @@ esp_err_t mdns_service_txt_item_remove_for_host(const char * instance, const cha
5417
5417
free (action );
5418
5418
return ESP_ERR_NO_MEM ;
5419
5419
}
5420
- if (xQueueSend (_mdns_server -> action_queue , & action , (portTickType )0 ) != pdPASS ) {
5420
+ if (xQueueSend (_mdns_server -> action_queue , & action , (TickType_t )0 ) != pdPASS ) {
5421
5421
free (action -> data .srv_txt_del .key );
5422
5422
free (action );
5423
5423
return ESP_ERR_NO_MEM ;
@@ -5458,7 +5458,7 @@ esp_err_t mdns_service_subtype_add_for_host(const char *instance_name, const cha
5458
5458
free (action );
5459
5459
return ESP_ERR_NO_MEM ;
5460
5460
}
5461
- if (xQueueSend (_mdns_server -> action_queue , & action , (portTickType )0 ) != pdPASS ) {
5461
+ if (xQueueSend (_mdns_server -> action_queue , & action , (TickType_t )0 ) != pdPASS ) {
5462
5462
free (action -> data .srv_subtype_add .subtype );
5463
5463
free (action );
5464
5464
return ESP_ERR_NO_MEM ;
@@ -5493,7 +5493,7 @@ esp_err_t mdns_service_instance_name_set_for_host(const char * instance_old, con
5493
5493
action -> type = ACTION_SERVICE_INSTANCE_SET ;
5494
5494
action -> data .srv_instance .service = s ;
5495
5495
action -> data .srv_instance .instance = new_instance ;
5496
- if (xQueueSend (_mdns_server -> action_queue , & action , (portTickType )0 ) != pdPASS ) {
5496
+ if (xQueueSend (_mdns_server -> action_queue , & action , (TickType_t )0 ) != pdPASS ) {
5497
5497
free (new_instance );
5498
5498
free (action );
5499
5499
return ESP_ERR_NO_MEM ;
@@ -5526,7 +5526,7 @@ esp_err_t mdns_service_remove_for_host(const char * instance, const char * servi
5526
5526
}
5527
5527
action -> type = ACTION_SERVICE_DEL ;
5528
5528
action -> data .srv_del .service = s ;
5529
- if (xQueueSend (_mdns_server -> action_queue , & action , (portTickType )0 ) != pdPASS ) {
5529
+ if (xQueueSend (_mdns_server -> action_queue , & action , (TickType_t )0 ) != pdPASS ) {
5530
5530
free (action );
5531
5531
return ESP_ERR_NO_MEM ;
5532
5532
}
@@ -5556,7 +5556,7 @@ esp_err_t mdns_service_remove_all(void)
5556
5556
return ESP_ERR_NO_MEM ;
5557
5557
}
5558
5558
action -> type = ACTION_SERVICES_CLEAR ;
5559
- if (xQueueSend (_mdns_server -> action_queue , & action , (portTickType )0 ) != pdPASS ) {
5559
+ if (xQueueSend (_mdns_server -> action_queue , & action , (TickType_t )0 ) != pdPASS ) {
5560
5560
free (action );
5561
5561
return ESP_ERR_NO_MEM ;
5562
5562
}
0 commit comments