Hello,
can someone share a piece of code or a hint to the right functions that can enable/disable notifications on all peers? All I want is that the central toggles notifications for all peers on key press. All I've got so far is the keypress.
As far as I digged through the client handler it seems I could use
p_client = &m_client[index];
in a for loop with index 0-3 for 4peers e.g.?
and then use code like in notif_enable(client_t * p_client)
.
But how can I call/use this in main.c? (So I can work with it inside my key_evt handler)