summaryrefslogtreecommitdiff
path: root/docs/esp32
diff options
context:
space:
mode:
authorJim Mussared <jim.mussared@gmail.com>2023-10-03 13:32:48 +1100
committerDamien George <damien@micropython.org>2023-10-04 12:39:51 +1100
commit65a3ce39a31e5ed7e5634c6905ca981039f42cb3 (patch)
tree73dea6741bfc01a7d99936ac9b5b2f8748b7a932 /docs/esp32
parentb329fdcb7394f7a30cb81c48e04ba3d557d29396 (diff)
extmod/modnetwork: Forward if.config(hostname) to network.hostname.
This removes the duplicate code in cyw43, esp32, esp8266 that implements the same logic as network.hostname. Renames the `mod_network_hostname` (where we store the hostname value in `.data`) to `mod_network_hostname_data` to make way for calling the shared function `mod_network_hostname`. And uses memcpy for mod_network_hostname_data, because the length of source is already known and removes reliance on string data being null-terminated. This work was funded through GitHub Sponsors. Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
Diffstat (limited to 'docs/esp32')
0 files changed, 0 insertions, 0 deletions