This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Check notification status / toggle notification status Mutilink Central Example

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)

Parents
  • It seem you are on the right path. I have not implement the code but I have briefly looked at it. This is how i would do it.

    Create a function in client_handling.c to start disabling notification.(client_handling_disable_all_notification()) in that you would run a loop on m_client with max value of m_client_count. And set disable notification function.

    Then you would call the new function when a button is press.

    Hope that help.

Reply
  • It seem you are on the right path. I have not implement the code but I have briefly looked at it. This is how i would do it.

    Create a function in client_handling.c to start disabling notification.(client_handling_disable_all_notification()) in that you would run a loop on m_client with max value of m_client_count. And set disable notification function.

    Then you would call the new function when a button is press.

    Hope that help.

Children
Related