Make AppInventor's output take priority on ESP-32

Hello there, I am an Electrical Engineering student and I'm currently working on a safe with a magnetic locked that can be opened either by a keypad or by an AppInventor App.
We've decided to use an ESP-32 and I'm now wondering if it'd be possible for the ESP-32 to read the keypad's output, send a signal to the magnetic lock, connect it to a phone, either by bluetooth or wifi, and read the app's output, all at the same time. We would also want the app to take absolute priority over the keypad.
I've thought about using a second arduino board and have the ESP-32 just connect to the app, but I'm not sure if that'd be the most efficient solution.
Anyways, I hope this was clear enough and I'd love to hear your thoughts on ways to improve and whether or not what we're trying to do is even possible with a single ESP32 board.

We know that App Inventor does not work with Services, there are some extensions to work in the background.

In this Community you can find examples of ESP32.

1 Like