Skip to content

Not receiving subscribed-to signals #373

Answered by sangelovic
cnbaker asked this question in Q&A
Discussion options

You must be logged in to vote

Looking at the code (markdown description of which I modified to fix the formatting problem), I see two problems:

  1. nm_proxy is created with wrong third argument. It shall be an object path, not an interface. This by itself shall have thrown sdbus::Error exception already at this point.
  2. The invalidated parameter of the "PropertiesChanged" is of type as, i.e. std::vector<std::string>, not std::map<std::string, sdbus::Variant>. Wrong argument type will result in sdbus::Error exception being thrown in the event loop thread, which in your case is also your main thread. So you should definitely see that exception.

Let me know if this helped.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@cnbaker
Comment options

@sangelovic
Comment options

@cnbaker
Comment options

Answer selected by cnbaker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants