-
Notifications
You must be signed in to change notification settings - Fork 123
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
Heartbeat Messages #617
Comments
Hello, Lines 229 to 251 in 2672168
When a heartbeat message is received it is being processed here: IOS-nRF-Mesh-Library/Library/Layers/Upper Transport Layer/UpperTransportLayer.swift Lines 248 to 258 in 2672168
and the count is incremented only when the subscription is active. To get the current count, send IOS-nRF-Mesh-Library/Library/Layers/Foundation Layer/ConfigurationServerHandler.swift Lines 636 to 637 in 2672168
Mind, that the implementation is based on the spec, so currently it's not possible to get a callback for every heartbeat message or obtain the exact count (log value is sent instead). It is also not possible to subscribe to more than one source at a time. There are open tasks #470 and #471 which would improve it by adding designated callbacks. |
Version
4.2.0 (latest)
Ask the question
I'm working on implementing Heartbeat logic in my application, but I'm encountering some issues with catching and processing incoming
HeartbeatMessages
.Here's what I’ve done so far:
I sent a
ConfigHeartbeatPublicationSet
to the hardware and received aConfigHeartbeatPublicationStatus
indicating success.However, when I try to retrieve the heartbeat data by sending a
ConfigHeartbeatPublicationGet
, I encounter a timeout.In the logs, I see that
Heartbeat Messages
are being received every 15 seconds as expected, with entries like:Despite this, I’m unable to catch these
HeartbeatMessages
in my application and perform the desired logic.What I Need Help With:
HeartbeatMessages
?Any guidance or examples on how to integrate this functionality would be greatly appreciated!
Relevant log output
The text was updated successfully, but these errors were encountered: