26 Commits

Author SHA1 Message Date
graham sanderson
cbf8072072 Merge branch 'master' into develop 2023-06-08 15:22:59 -05:00
Peter Harper
4005af122e The dhcp server should reply to the right netif (#392)
The DHCP server broadcasts messages. This are being sent via the
default netif which might be completely the wrong network. We want to
send messages to the netif we got the original message from.
2023-06-08 10:03:16 -05:00
Peter Harper
5ba4cfc677 ping example app throws lwip assert (#394)
Now LWIP_PLATFORM_ASSERT has been fixed we're seeing an assert for the
ping example app.
It sets the SO_RCVTIMEO socket option which is not enabled.

Fixes #308
2023-06-08 10:02:25 -05:00
Frederico Pereira
654aabc686 Update picow_ntp_client.c (#391)
Fix "invalid conversion from 'void*' to 'NTP_T*'"
2023-06-06 10:51:55 -05:00
Peter Harper
0da9d4576b Add an example for how to enable TLS verification. (#381)
* Add an example for how to enable TLS verification.

TLS should really be used with verification enabled, as otherwise you
can still suffer from a "man in the middle" attack. Add an example that
demonstrates how to do this.

Fixes #337
2023-06-06 10:45:01 -05:00
Peter Harper
5f282200d3 Comments about btstack_run_loop_execute (#388)
Co-authored-by: Graham Sanderson <graham.sanderson@raspberrypi.com>
2023-06-06 10:43:05 -05:00
Peter Harper
36949cbf83 Call disable function for STA/AP modes. (#387)
If the user presses "d" wifi is disconnected and the example exits.
Tests new "disable" functions.

Fixes #386
2023-06-05 10:33:03 -05:00
Peter Harper
8bcf165a8f Fix bt freertos build warnings (#378)
Fixes #373
2023-06-05 10:19:26 -05:00
Peter Harper
014fb537eb ble temp example: enable att server to avoid disconnect (#368)
Fixes #367

Co-authored-by: Matthias Ringwald <matthias@ringwald.ch>
2023-06-05 10:18:35 -05:00
Mr. Green's Workshop
26368b1c36 Splitting BLE and BT Classic dependencies (#332)
Co-authored-by: Peter Harper <peter.harper@raspberrypi.com>
2023-03-10 15:45:30 -06:00
dp111
e44703136f Correct Types in printf (#345) 2023-03-10 15:43:08 -06:00
dp111
1d136651f9 Correct type in printf (#346) 2023-03-10 15:42:37 -06:00
dp111
4eecaa6543 Fix debug printf (#347) 2023-03-10 15:42:10 -06:00
graham sanderson
1c5d9aa567 Add Bluetooth examples
Co-authored-by: Peter Harper <77111776+peterharperuk@users.noreply.github.com>
2023-02-10 18:26:53 -06:00
kripton
b59a522ec4 Pico-W Access Point: Fix DHCP server for certain clients (dhcpcd) (#288) 2023-02-09 13:41:48 +00:00
Peter Harper
86496336c1 Add tls_client example (#305)
* Add tls_client example

This requires pico_mbedtls in the pico-sdk
Connects to worldtimeapi.org and retrieves a web page
Originally written by Floris Bos @maxnet
2023-02-04 16:41:44 -06:00
Brian Cooke
5d9f227d71 fix typos in pico-w examples (#236)
* fix typo in iperf example

* fix type in ping example
2023-02-02 19:23:54 +00:00
Peter Harper
566ce86a6e Improve ap example (#233)
* Add dns server

The access point example is a bit complicated to use as you have to open
a browser and enter a url with the IP address of the device

Add a simple dns server that can be used to make the access point behave
like a captive portal. All DNS requests point back to the gateway IP.

* Improve AP example

The web page /ledtest gives you a web page with an option to turn the
led on and off

Start the DNS server and redirect all HTTP requests to this page.

Improve the code so it can handle more than one request at a time.

Fixes: #232
2023-01-23 08:35:33 -06:00
Peter Harper
a605c65774 ping example app throws lwip assert (#309)
Now LWIP_PLATFORM_ASSERT has been fixed we're seeing an assert for the
ping example app.
It sets the SO_RCVTIMEO socket option which is not enabled.

Fixes #308
2023-01-04 12:58:44 -06:00
Peter Harper
c80026dbed Add UDP transmitter example (#306)
Co-authored-by: Andrew McDonnell <bugs@andrewmcdonnell.net>
2022-12-22 17:20:35 -06:00
Peter Harper
5bb4f7f6cb Fix issues building examples with LWIP_IPV6 (#268)
Fixes https://github.com/raspberrypi/pico-examples/issues/265
2022-12-06 18:49:18 -05:00
Mücahit KURTLAR
f31966d69d Add Python test scripts and rename MicroPython scripts (#246) 2022-12-06 18:48:11 -05:00
Wenzel
75c6a5e9db Fix missing TCP_PORT for printf in TCP server example (#270)
Also replace `%d` with `%u`

Co-authored-by: Viacheslav Lotsmanov <lotsmanov89@gmail.com>
2022-10-12 20:09:04 -05:00
Peter Harper
5555037e78 Load WIFI_SSID and WIFI_PASSWORD from environment (#274)
Fixes #273
2022-09-11 07:31:06 -05:00
David Christensen
15e7d06abd README and comment change for pico-w examples (#242) 2022-07-16 16:14:49 -05:00
graham sanderson
01e8128953 Add Pico W examples 2022-06-29 23:12:10 -05:00