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

SendCommand #14

Open
DejanIvic opened this issue Sep 24, 2020 · 1 comment
Open

SendCommand #14

DejanIvic opened this issue Sep 24, 2020 · 1 comment
Labels

Comments

@DejanIvic
Copy link

Hi, I need a help in order to send command via IEC 104.

I tried to use the standard function SendControlCommand but it turns out that it can not accept the type of command? I am at the beginning od IEC 104 so please if someone could provide me some example with working send command function?

Regards.

@mzillgith
Copy link
Contributor

Please check the code in the cs104-client1 example.

You have to provide the command type as argument for the SendControlCommand method:


con.SendControlCommand (CauseOfTransmission.ACTIVATION, 1, new SingleCommand (5000, true, false, 0));

con.SendControlCommand (CauseOfTransmission.ACTIVATION, 1, new DoubleCommand (5001, DoubleCommand.ON, false, 0));

con.SendControlCommand (CauseOfTransmission.ACTIVATION, 1, new StepCommand (5002, StepCommandValue.HIGHER, false, 0));

con.SendControlCommand (CauseOfTransmission.ACTIVATION, 1, 
			                        new SingleCommandWithCP56Time2a (5000, false, false, 0, new CP56Time2a (DateTime.Now)));

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

No branches or pull requests

2 participants