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

Add missing plugin event listener according to action strings #22

Open
deinhofer opened this issue May 12, 2014 · 2 comments
Open

Add missing plugin event listener according to action strings #22

deinhofer opened this issue May 12, 2014 · 2 comments
Assignees
Milestone

Comments

@deinhofer
Copy link
Contributor

All plugins should be checked to support all useful event listener according to action strings supported by a plugin.

Example: DigitalOut:
Input port Description
action [string]: The plugin reacts to incoming action strings starting with "@gpio:" and a command. Valid commands are "set", "clear", "toggle" and "press". The command has to be followed by a comma and the port number, for example: "@gpio:set,1" or "@gpio:toggle,2". The "press"-command toggles the given output port two times with a delay of 500 milliseconds. The following examples illustrate the available action strings:
"@digitalout:set,1": Pin 1 of the GPIO CIM will be set
"@digitalout:clear,2":Pin 2 of the GPIO CIM will be cleared
"@digitalout:toggle,1": Pin 1 of the GPIO CIM will be changed
"@digitalout:press,4": Pin 4 of the GPIO CIM will be cleared and after 500ms it will be set again
Event Listener Description
setOutput1 to setOutput5: an incoming event on these ports will cause the corresponding output port on the CIM to go to the high level.
clearOutput1 to clearOutput5: an incoming event on these ports will cause the corresponding output port on the CIM to go to the low level.

There are no event listener for "toggle" and "press"

Event listeners should be preferred instead of action strings because they are easier to program and keep the model simpel.

@ChrisVeigl ChrisVeigl self-assigned this Sep 16, 2014
@ChrisVeigl ChrisVeigl added this to the Version2.5 milestone Sep 16, 2014
@deinhofer
Copy link
Contributor Author

Fixed for DigitalOut, Mouse, RemoteMouse, RemoteTablet

@deinhofer
Copy link
Contributor Author

But Mouse still has more events than RemoteMouse and RemotTablet so I leave it open

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

No branches or pull requests

2 participants