Need help with terminal and disable any button

I have a project that uses 4 virtual pins to control the relay, but I want to use the terminal to command app lock, the virtual pins on the blynk app don’t work except the terminal, when I enter and enable the app then the virtual pin pins on blynk application work normally again. I’m having trouble not knowing how to write code to run like that. Thanks for everyone’s help, thank you

You can’t actually disable widgets in the current version of Blynk, but you could ignore the button presses by modifying the BLYNK_WRITE commands that go with those buttons to include an if statement which checks if a variable is true before processing the command.

You’d then set that variable to true by using your terminal input.


Thank so much