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
b8523d33
Commit
b8523d33
authored
Jul 19, 2021
by
Niuhaiwen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add heart-beat notify
parent
4427835b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
src/nrf_app/nrf_profile.cpp
src/nrf_app/nrf_profile.cpp
+11
-2
No files found.
src/nrf_app/nrf_profile.cpp
View file @
b8523d33
...
...
@@ -608,16 +608,25 @@ void nrf_profile::handle_heartbeart_timeout_nfupdate(uint64_t ms) {
"current "
"ms %ld"
,
nf_instance_id
.
c_str
(),
ms
,
current_ms
);
Logger
::
nrf_app
().
info
(
"nf_status %s"
,
nf_status
.
c_str
());
std
::
shared_ptr
<
nrf_profile
>
profile
=
{};
std
::
string
status
;
nrf_app_inst
->
find_nf_profile
(
nf_instance_id
,
profile
);
profile
->
get_nf_status
(
status
);
Logger
::
nrf_app
().
info
(
"profile nf_status %s"
,
status
.
c_str
());
if
(
!
is_updated
)
{
set_nf_status
(
"SUSPENDED"
);
find_nf_profile
(
nf_instance_id
,
profile
);
//set_nf_status("SUSPENDED");
if
(
status
.
compare
(
"REGISTERED"
)
==
0
)
{
//nrf_app_inst->find_nf_profile(nf_instance_id, profile);
std
::
vector
<
std
::
string
>
notification_uris
=
{};
nrf_app_inst
->
get_subscription_list
(
nf_instance_id
,
NOTIFICATION_TYPE_NF_DEREGISTERED
,
notification_uris
);
nrf_client_inst
->
notify_subscribed_event
(
profile
,
NOTIFICATION_TYPE_NF_DEREGISTERED
,
notification_uris
);
}
set_nf_status
(
"SUSPENDED"
);
}
set_status_updated
(
false
);
}
...
...
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