Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
e0ffcc2d
Commit
e0ffcc2d
authored
Mar 15, 2007
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*** empty log message ***
parent
99d934ff
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
10 deletions
+16
-10
opc/exe/opc_server/src/opc_server.cpp
opc/exe/opc_server/src/opc_server.cpp
+16
-10
No files found.
opc/exe/opc_server/src/opc_server.cpp
View file @
e0ffcc2d
/*
* Proview $Id: opc_server.cpp,v 1.
7 2007-03-15 08:07:50
claes Exp $
* Proview $Id: opc_server.cpp,v 1.
8 2007-03-15 12:33:03
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -99,9 +99,9 @@ int main()
exit
(
sts
);
}
#if 0
opcsrv = new opc_server();
#if 0
pwr_tOid config_oid;
// Get OpcServerConfig object
...
...
@@ -209,9 +209,15 @@ SOAP_FMAC5 int SOAP_FMAC6 __ns1__Read(struct soap*,
int
reqType
=
-
1
;
pwr_tTypeId
tid
;
unsigned
int
elem
;
char
buf
[
40
];
char
buf
[
1024
];
unsigned
int
options
=
0
;
ns1__ReadResponse
->
ReadResult
=
new
ns1__ReplyBase
();
// ns1__ReadResponse->ReadResult->RcvTime = current_time.tv_sec;
// ns1__ReadResponse->ReadResult->ReplyTime = current_time.tv_sec;
if
(
ns1__Read
->
Options
)
ns1__ReadResponse
->
ReadResult
->
ClientRequestHandle
=
ns1__Read
->
Options
->
ClientRequestHandle
;
ns1__ReadResponse
->
ReadResult
->
ServerState
=
ns1__serverState__running
;
if
(
!
ns1__Read
->
ItemList
)
return
0
;
...
...
@@ -277,19 +283,19 @@ SOAP_FMAC5 int SOAP_FMAC6 __ns1__Read(struct soap*,
continue
;
}
sts
=
gdh_GetObjectInfoAttrref
(
&
ar
,
buf
,
40
);
sts
=
gdh_GetObjectInfoAttrref
(
&
ar
,
buf
,
sizeof
(
buf
)
);
if
(
ODD
(
sts
))
{
if
(
reqType
<
0
)
opc_pwrtype_to_opctype
(
tid
,
&
reqType
);
if
(
opc_convert_pwrtype_to_opctype
(
buf
,
40
,
reqType
,
tid
))
{
if
(
opc_convert_pwrtype_to_opctype
(
buf
,
sizeof
(
buf
)
,
reqType
,
tid
))
{
char
*
str
;
opc_opctype_to_value
(
buf
,
40
,
reqType
);
str
=
(
char
*
)
malloc
(
strlen
(
buf
));
strncpy
(
str
,
buf
,
40
);
opc_opctype_to_value
(
buf
,
sizeof
(
buf
)
,
reqType
);
str
=
(
char
*
)
malloc
(
strlen
(
buf
)
+
1
);
strncpy
(
str
,
buf
,
sizeof
(
buf
)
);
iv
->
Value
=
str
;
sprintf
(
iv
->
ValueType
,
"
xsd:
%s"
,
opc_opctype_to_string
(
reqType
));
sprintf
(
iv
->
ValueType
,
"%s"
,
opc_opctype_to_string
(
reqType
));
if
(
options
&
opc_mRequestOption_ReturnItemTime
)
{
// ToDo !!!
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment