forked from cisagov/icsnpp-opcua-binary
-
Notifications
You must be signed in to change notification settings - Fork 0
/
opcua_binary-create_subscription.pac
38 lines (34 loc) · 1.34 KB
/
opcua_binary-create_subscription.pac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
## opcua_binary-create_subscription.pac
##
## OPCUA Binary Protocol Analyzer
##
## Binpac code for processing the create subscription service.
##
## Author: Melanie Pierce
## Contact: [email protected]
##
## Copyright (c) 2022 Battelle Energy Alliance, LLC. All rights reserved.
#
# UA Specification Part 4 - Services 1.04.pdf - Create Subscription
# 5.13.2.2 - Table 88 - CreateSubscription Service Parameters
#
type Create_Subscription_Req(service: Service) = record {
req_hdr : Request_Header;
req_publishing_interval : OpcUA_Duration;
req_lifetime_count : uint32;
req_max_keep_alive_count : uint32;
max_notifications_per_publish : uint32;
publishing_enabled : OpcUA_Boolean;
priority : uint8;
} &let {
deliver: bool = $context.flow.deliver_Svc_CreateSubscriptionReq(this);
} &byteorder=littleendian;
type Create_Subscription_Res(service: Service) = record {
res_hdr : Response_Header;
subscription_id : uint32;
revised_publishing_interval : OpcUA_Duration;
revised_lifetime_count : uint32;
revised_max_keep_alive_count : uint32;
} &let {
deliver: bool = $context.flow.deliver_Svc_CreateSubscriptionRes(this);
} &byteorder=littleendian;