lwip: refactor to socket ping

Do some refactor to socket ping:
1. Add ping_deinit to kill ping thread
2. Apply configuration set by esp_ping_set_target to socket ping
3. Limit only one ping thread
This commit is contained in:
Liu Zhi Fu
2017-06-15 11:37:23 +08:00
parent 0a52dbccca
commit 3bcaa592ee
5 changed files with 176 additions and 42 deletions

View File

@@ -43,7 +43,11 @@ extern "C" {
#endif
void ping_init(void);
int ping_init(void);
#ifdef ESP_PING
void ping_deinit(void);
#endif
#if !PING_USE_SOCKETS
void ping_send_now(void);