-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lwip upgrade to 2.2.0, added mDNS, various small fixes
- Loading branch information
Showing
8 changed files
with
72 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/* | ||
* ohs_mdns_functions.h | ||
* | ||
* Created on: Oct 11, 2024 | ||
* Author: vysocan | ||
*/ | ||
|
||
#ifndef OHS_MDNS_FUNCTIONS_H_ | ||
#define OHS_MDNS_FUNCTIONS_H_ | ||
|
||
/* | ||
* MDNS responder callback Service Status | ||
*/ | ||
#if LWIP_MDNS_RESPONDER | ||
static void mdnsSrvTxt(struct mdns_service *service, void *txt_userdata) { | ||
err_t resp; | ||
LWIP_UNUSED_ARG(txt_userdata); | ||
|
||
resp = mdns_resp_add_service_txtitem(service, "path=/", 6); | ||
if (resp != ERR_OK) { | ||
chprintf(console, "MDNS: Add service txt status %d.\r\n", resp); | ||
} | ||
} | ||
#endif | ||
/* | ||
* MDNS responder callback Status Report | ||
*/ | ||
#if LWIP_MDNS_RESPONDER | ||
static void mdnsStatusReport(struct netif* netif, u8_t result, s8_t service) { | ||
(void)netif; | ||
(void)result; | ||
(void)service; | ||
|
||
//chprintf(console,"mdns status[netif %d][service %d]: %d\r\n", netif->num, service, result); | ||
} | ||
#endif | ||
|
||
#endif /* OHS_MDNS_FUNCTIONS_H_ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters