mesh: Refactor heartbeat pub/sub
authorInga Stotland <inga.stotland@intel.com>
Fri, 7 Aug 2020 01:38:34 +0000 (18:38 -0700)
committerAbhay Agarwal <ay.agarwal@samsung.com>
Mon, 28 Dec 2020 06:20:04 +0000 (11:50 +0530)
commit7a0378fe396c4b3b3602165587797028375bee73
tree68579041f0c04dc20510c800c76adc595cb06db3
parent9386810686373b7b02958b97272df19e9e2aa395
mesh: Refactor heartbeat pub/sub

Move heartbeat publication/subscription timers and housekeeping
to net.c since this is where the trigger events and control messages
are handled. Configuration server (cfgmod-server.c) stays
responsible for parsing the set pub/sub message parameters and
assemblying the pub/sub status messages.

Also, make sure that the correct message status is reported.

Change-Id: I3243b98a1f970717b7c48d6a3bbe0344e24fb1ac
Signed-off-by: anuj.bhumiya <anuj.bhumiya@samsung.com>
mesh/cfgmod-server.c
mesh/net.c
mesh/net.h