circuitpython/examples
Damien George c8385ef75a examples/network: Support IPv4 and IPv6 in HTTP client examples.
The main changes here are to pass the address family and socket type to
`getaddrinfo()`, and then use the result of the address lookup when
creating the socket, so it has the correct address family.

This allows both IPv4 and IPv6 to work, because the socket is created with
the correct AF_INETx type for the address.

Also add some more comments to the examples to explain what's going on.

Fixes issue #15580.

Signed-off-by: Damien George <damien@micropython.org>
2024-08-28 12:28:58 +10:00
..
bluetooth examples/bluetooth: Link to aioble in BLE examples. 2023-09-01 14:05:32 +10:00
embedding embed: Improve stack top estimation. 2024-02-15 10:07:32 +11:00
hwapi all: Fix various spelling mistakes found by codespell 2.2.6. 2023-10-03 11:24:50 +11:00
natmod py: Add new cstack API for stack checking, with limit margin macro. 2024-08-14 12:55:45 +10:00
network examples/network: Support IPv4 and IPv6 in HTTP client examples. 2024-08-28 12:28:58 +10:00
rp2 examples: Mark asm, pio, etc. as noqa: F821 (undefined-name). 2023-08-16 16:12:33 +10:00
SDdatalogger top: Update Python formatting to black "2023 stable style". 2023-02-02 12:51:03 +11:00
unix examples/unix/machine_bios.py: Fix typo. 2023-09-29 17:02:15 +10:00
usb examples/usb: Add README that points out the alternative usb modules. 2024-05-15 15:20:40 +10:00
usercmodule examples/usercmodule/cexample: Add more advanced native class. 2024-07-25 11:57:13 +10:00
accel_i2c.py all: Reformat C and Python source code with tools/codeformat.py. 2020-02-28 10:33:03 +11:00
accellog.py all: Reformat C and Python source code with tools/codeformat.py. 2020-02-28 10:33:03 +11:00
asmled.py examples: Mark asm, pio, etc. as noqa: F821 (undefined-name). 2023-08-16 16:12:33 +10:00
asmsum.py examples: Mark asm, pio, etc. as noqa: F821 (undefined-name). 2023-08-16 16:12:33 +10:00
conwaylife.py top: Update Python formatting to black "2023 stable style". 2023-02-02 12:51:03 +11:00
ledangle.py all: Reformat C and Python source code with tools/codeformat.py. 2020-02-28 10:33:03 +11:00
mandel.py all: Reformat C and Python source code with tools/codeformat.py. 2020-02-28 10:33:03 +11:00
micropython.py all: Reformat C and Python source code with tools/codeformat.py. 2020-02-28 10:33:03 +11:00
pyb.py all: Reformat C and Python source code with tools/codeformat.py. 2020-02-28 10:33:03 +11:00
switch.py all: Reformat C and Python source code with tools/codeformat.py. 2020-02-28 10:33:03 +11:00