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

Fix client_example5 #438

Open
wants to merge 1 commit into
base: v1.5
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions examples/iec61850_client_example5/client_example5.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,15 @@ main(int argc, char** argv)
TSelector localTSelector = { 3, { 0x00, 0x01, 0x02 } };
TSelector remoteTSelector = { 2, { 0x00, 0x01 } };

SSelector remoteSSelector = { 2, { 0, 1 } };
SSelector localSSelector = { 5, { 0, 1, 2, 3, 4 } };
SSelector remoteSSelector = { 2, { 0, 1 } };

PSelector localPSelector = {4, { 0x12, 0x34, 0x56, 0x78 } };
PSelector remotePSelector = {4, { 0x87, 0x65, 0x43, 0x21 } };

/* change parameters for presentation, session and transport layers */
IsoConnectionParameters_setRemoteAddresses(parameters, remotePSelector, remoteSSelector, localTSelector);
IsoConnectionParameters_setLocalAddresses(parameters, localPSelector, localSSelector, remoteTSelector);
IsoConnectionParameters_setRemoteAddresses(parameters, remotePSelector, remoteSSelector, remoteTSelector);
IsoConnectionParameters_setLocalAddresses(parameters, localPSelector, localSSelector, localTSelector);

char* password = "top secret";

Expand Down