Cannot receive Midi messages

I am trying to reset some buttons’ values to 0 when I start my Processing program which I control with my Grid controller.
I set it up to send Midi messages to the controller that set all the values of the CCs corresponding to the buttons to 0. I followed the documentation to set the controller up to receive the messages, and changed the “encoder_value()” in the code block to “button_value()”. That should do the trick, right?

I am however, not even receiving any Midi message even in the Midi monitor. What could the issue be?

Edit: Actually, I am trouble receiving any Midi messages at all, even in the Midi monitor. I set it up exactly the same way as sending messages to my Processing sketch (except of course using the receiver instead of the transmitter functionality), but I am simply not receiving anything at all.

Edit2: I confirmed with Midi monitor (a separate application on macOS) that the messages are actually sent out, and they are. But no matter what I do, they do not show up in the Grid editor’s own Midi monitor, nor do they affect any of the buttons.

Edit3: I saw in another post that the Grid editor’s Midi monitor will only print properly decoded messages, so it makes sense the incoming ones do not show up yet.

You can also check under the midi rx event that any of the midi. parameters like midi.p1 or midi.p2 are actually incoming, logging them to the debug window with a code block and print().

If data is received, then you can move forward with the lookup table to assign them to the element indexes and call the value setting functions you also mentioned.