Page 1 of 1

Pico W - how to use it with UDP - RESOLVED

Posted: Thu Jul 14, 2022 2:11 pm
by Nexus12
Hi
Anyone have any idea how to implement a UDP project on the Pico W

I can not see how to configure the wifi module to use the UDP protocol

Anyone have any ideas - its almost certainly me overthinking things - but I'm stuck :?

Any help would be appreciated

Re: Pico W - how to use it with UDP

Posted: Thu Jul 14, 2022 3:22 pm
by TheSilverBullet
Nexus12 wrote:
Thu Jul 14, 2022 2:11 pm
Hi
Anyone have any idea how to implement a UDP project on the Pico W

I can not see how to configure the wifi module to use the UDP protocol

Anyone have any ideas - its almost certainly me overthinking things - but I'm stuck :?

Any help would be appreciated
Have a look at:
socket.socket(af=AF_INET, type=SOCK_STREAM, proto=IPPROTO_TCP/)
socket.socket(af=AF_INET, type=SOCK_DGRAM, proto=IPPROTO_TCP)

Re: Pico W - how to use it with UDP

Posted: Thu Jul 14, 2022 4:09 pm
by Nexus12
Uh thanks 'TheSilverBullet' I got it now - thank you