Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow registering for more granular events #1

Open
spali opened this issue Apr 28, 2015 · 2 comments
Open

allow registering for more granular events #1

spali opened this issue Apr 28, 2015 · 2 comments

Comments

@spali
Copy link
Member

spali commented Apr 28, 2015

  • register for peer update (already implemented)
  • register for only a channel of a peer
  • register for only a specific paramset of a peer and channe
    • also for specific paramsets in all channels
    • should also support using MASTER paramset
  • specific value only
  • some multiple specific values

maybe the description for registering can be something like a tree array/object which defines what should fire an event, doesn't have to be exact this format, but should support that kind of granularity:

/* get all updates on the specific value STATE of peer 1 channel 1 paramset VALUES */
{
  peerId: 1,
  event: onUpdate,
  channels: {
    1: {
      paramsets: { 
        VALUES: STATE
      }
    }
  },
},
/* get all changes on values of peer 2, channel 2, paramset MASTER */
{
  peerId: 2,
  event: onChange
  channels: {
    2: {
      paramsets: { 
        MASTER: {}
      }
    }
  },
},
/* get all changes on values of peer 3, channel 2 */
{
  peerId: 3,
  event: onChange
  channels: {
    2: {}
  },
},
/* get all changes of the value of the system variable */
{
  systemVariable: myVariable,
  event: onChange
},
/* get all changes of all system variables */
{
  systemVariable: {},
  event: onChange
},
/* get all changes of all system messages */
{
  systemMessage: {},
  event: onChange
},
/* get all timed events when triggered */
{ events: {},
  event: trigger
}
@spali
Copy link
Member Author

spali commented May 7, 2015

Currently:
When I register for events of a specific device, I don't get events for changes I have done.
Also I receive events even the value didn't change.

Is this expected?

@spali
Copy link
Member Author

spali commented May 7, 2015

Even worse... If I change a value (at least by any kind of rpc access) it doesn't fire an event for the change.
Is it possible, that only changes made by the physical device fires an event?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant