BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mangoh-drivers
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
mangoh-drivers
Commits
87cc7b88
Commit
87cc7b88
authored
Mar 27, 2019
by
Ashish Syal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated app such that le_duplicate is ok
parent
9e7f16d3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
2 deletions
+25
-2
component.c
apps/YellowSensorToCloud/components/sensors/bsec/component.c
+25
-2
No files found.
apps/YellowSensorToCloud/components/sensors/bsec/component.c
View file @
87cc7b88
...
...
@@ -137,12 +137,35 @@ static void SensorReadingHandler
free
(
value
);
}
//--------------------------------------------------------------------------------------------------
/**
* SIGTERM handler to cleanly shutdown
*/
//--------------------------------------------------------------------------------------------------
/*static void actuator_SigTermHandler
(
int pSigNum
)
{
(void)pSigNum;
LE_INFO("Remove bsec resource");
io_DeleteResource(RES_PATH_VALUE);
io_DeleteResource(RES_PATH_CONFIG);
}
*/
COMPONENT_INIT
{
// Catch application termination and shutdown cleanly
// le_sig_Block(SIGTERM);
// le_sig_SetEventHandler(SIGTERM, actuator_SigTermHandler);
le_result_t
res
=
io_CreateOutput
(
RES_PATH_CONFIG
,
IO_DATA_TYPE_JSON
,
""
);
LE_FATAL_IF
(
res
!=
LE_OK
,
"Couldn't create config data hub output - %s"
,
LE_RESULT_TXT
(
res
));
// io_MarkOptional(RES_PATH_CONFIG);
LE_FATAL_IF
(
res
!=
LE_OK
&&
res
!=
LE_DUPLICATE
,
"Couldn't create config data hub output - %s"
,
LE_RESULT_TXT
(
res
));
io_MarkOptional
(
RES_PATH_CONFIG
);
io_AddJsonPushHandler
(
RES_PATH_CONFIG
,
BmeConfigPushHandler
,
NULL
);
LE_ASSERT_OK
(
io_CreateInput
(
RES_PATH_VALUE
,
IO_DATA_TYPE_JSON
,
""
));
...
...
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