I got it to work!!! I first made a function to publish a request for data. In the function, I used the connect, publish, and disconnect statements. I called the publish function, then I set up the information to subscribe In the main code. I had to do it in that order. I gave up on using the 2nd core. I was able to get the publish to run in the other core, but every time I need to rerun the program, I had to restart Thonny and power cycle the Pico W. I did put a _thread.exit() statement at the end of the 2nd core thread.
Statistics: Posted by wjburl — Tue Apr 22, 2025 11:55 am