How to run a code on a raspberry pi pico in parralel to another one that stays connected to wifi

July 13, 2024, 18:12

sneakyandrey

Hi, I am trying to make a relay open at some determined hours using a Raspberry Pi Pico W, but i also want it to be controlled with a phone app that i developed, the app works as it connects to a network and when i press a button a command word/key is sent via that network and the pi pico listens on that same network for those keys and executes a code according to the right one, but the problem i've ran into is the fact that when the pico listens on that network for those keys, it does not check for the selected hours to execute another piece of code, i've attached 2 failed variants of that code, neither of them work, can anyone help me please?