Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-NRF
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
Operations
Operations
Metrics
Environments
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
OpenXG
OpenXG-NRF
Commits
9bb39cf2
Commit
9bb39cf2
authored
Jul 07, 2021
by
Tien-Thinh Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix issue for sending notifications
parent
2965d644
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
11 deletions
+6
-11
src/nrf_app/nrf_app.cpp
src/nrf_app/nrf_app.cpp
+6
-11
No files found.
src/nrf_app/nrf_app.cpp
View file @
9bb39cf2
...
...
@@ -466,17 +466,12 @@ void nrf_app::handle_create_subscription(
subscription_condition_t
sub_condition
=
{};
ss
.
get
()
->
get_sub_condition
(
sub_condition
);
find_nf_profiles
(
sub_condition
,
profiles
);
if
(
profiles
.
size
()
>
0
)
{
std
::
vector
<
std
::
string
>
notification_uris
=
{};
notification_uris
.
push_back
(
notification_uri
);
for
(
auto
p
:
profiles
)
{
// send notifications
nrf_client_inst
->
notify_subscribed_event
(
p
,
NOTIFICATION_TYPE_NF_REGISTERED
,
notification_uris
);
}
}
else
{
Logger
::
nrf_app
().
error
(
"
\t
No NF profile found"
);
std
::
vector
<
std
::
string
>
notification_uris
=
{};
notification_uris
.
push_back
(
notification_uri
);
for
(
auto
p
:
profiles
)
{
// send notifications
nrf_client_inst
->
notify_subscribed_event
(
p
,
NOTIFICATION_TYPE_NF_REGISTERED
,
notification_uris
);
}
}
...
...
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