Pico W - Threading & Web Server
Posted: Fri Sep 23, 2022 1:21 am
Hello everyone,
This is more of a request for information. I am trying to utilize both cores of the Pico W. One core for data logging and the other to host a web server that would pull information from the JSON files created. I have test code for each portion which work on their own. However, in testing threading capabilities. I specified CORE 1 to run the web server code and leaving the other CORE 0 alone. It seems to hang up when trying to connect to the internet. The web server code is from "Connecting to the Internet with Raspberry Pi Pico W". Specifically, the async code.
I may be asking too much of the Pico W. Just want to see if there is anyone with some knowledge or some material for reference. Thanks.
Known Facts:
(1) _threading is experimental on the Pico W
(2) Code works when not threading
This is more of a request for information. I am trying to utilize both cores of the Pico W. One core for data logging and the other to host a web server that would pull information from the JSON files created. I have test code for each portion which work on their own. However, in testing threading capabilities. I specified CORE 1 to run the web server code and leaving the other CORE 0 alone. It seems to hang up when trying to connect to the internet. The web server code is from "Connecting to the Internet with Raspberry Pi Pico W". Specifically, the async code.
I may be asking too much of the Pico W. Just want to see if there is anyone with some knowledge or some material for reference. Thanks.
Known Facts:
(1) _threading is experimental on the Pico W
(2) Code works when not threading