raspberrypi / pico-examples

BSD 3-Clause "New" or "Revised" License
2.84k stars 820 forks source link

update tcp_server to allow for usb CMakeLists.txt #412

Closed horner closed 1 year ago

horner commented 1 year ago

without picow_tcpip_server_poll the printf's like this: https://github.com/raspberrypi/pico-examples/blob/eca13acf57916a0bd5961028314006983894fc84/pico_w/wifi/tcp_server/picow_tcp_server.c#L258 do not show anywhere. I burned hours wondering if the code was running.

Should we think about making all of the examples turn on usb stdio by default? Since you have to used the USB to install the app it sure would make it easy to see debug every example was set to show stdio to the usb serial.

lurch commented 1 year ago

See section 4.1 of https://datasheets.raspberrypi.com/pico/getting-started-with-pico.pdf

kilograham commented 1 year ago

duplicate of #321