Title: fix get_ipv4_netmask to get the netmask (not the address) by lebeno · Pull Request #192 · MicroPythonOS/MicroPythonOS · GitHub
Open Graph Title: fix get_ipv4_netmask to get the netmask (not the address) by lebeno · Pull Request #192 · MicroPythonOS/MicroPythonOS
X Title: fix get_ipv4_netmask to get the netmask (not the address) by lebeno · Pull Request #192 · MicroPythonOS/MicroPythonOS
Description: Problem The IPv4 Netmask in the About app showed the same value as IPv4 address. Reason As documented in https://docs.micropython.org/en/latest/library/network.html#network.AbstractNIC.ipconfig, addr4 (e.g. 192.168.0.4/24) obtains the current IPv4 address and network mask as (ip, subnet)-tuple. Solution Add tuple_index (defaults to 0) to the _get_ipv4_value method in wifi_service.py. Change the get_ipv4_netmask method to get the second element from the addr4 tuple (index=1). Testing Compiled and successfully tested on Fri3d Camp 2026 badge hardware.
Open Graph Description: Problem The IPv4 Netmask in the About app showed the same value as IPv4 address. Reason As documented in https://docs.micropython.org/en/latest/library/network.html#network.AbstractNIC.ipconfig, ad...
X Description: Problem The IPv4 Netmask in the About app showed the same value as IPv4 address. Reason As documented in https://docs.micropython.org/en/latest/library/network.html#network.AbstractNIC.ipconfig, ad...
Opengraph URL: https://github.com/MicroPythonOS/MicroPythonOS/pull/192
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:181ea9d3-b8ce-2564-cfeb-506f50731d6b |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 82EC:2E6B05:2D2B4F4:3D4B42B:6A549517 |
| html-safe-nonce | 4f015e59083f5a16aec4870e2af2032d7a45673705dc9aafb6cbc2a8bf296eed |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MkVDOjJFNkIwNToyRDJCNEY0OjNENEI0MkI6NkE1NDk1MTciLCJ2aXNpdG9yX2lkIjoiMTY5NjU2MjU2Njc0OTUyNTI3MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | ee3b87296f2d3fa83e60b24ac9cb2710ade249cf1569cb85c6f6f7cbbd0cb4c3 |
| hovercard-subject-tag | pull_request:4035001471 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/MicroPythonOS/MicroPythonOS/pull/192/files |
| twitter:image | https://avatars.githubusercontent.com/u/12006681?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/12006681?s=400&v=4 |
| og:image:alt | Problem The IPv4 Netmask in the About app showed the same value as IPv4 address. Reason As documented in https://docs.micropython.org/en/latest/library/network.html#network.AbstractNIC.ipconfig, ad... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/MicroPythonOS/MicroPythonOS git https://github.com/MicroPythonOS/MicroPythonOS.git |
| octolytics-dimension-user_id | 213598128 |
| octolytics-dimension-user_login | MicroPythonOS |
| octolytics-dimension-repository_id | 975472483 |
| octolytics-dimension-repository_nwo | MicroPythonOS/MicroPythonOS |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 975472483 |
| octolytics-dimension-repository_network_root_nwo | MicroPythonOS/MicroPythonOS |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f8cfff6384f62259baea531c7f58bc7040f8dd92 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width