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
0731aeba
Commit
0731aeba
authored
Mar 25, 2019
by
Zahid Chowdhury
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Using dataHub from Legato 19.02.0 interface
parent
ab70d909
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
location.c
apps/locationService/components/location.c
+3
-2
No files found.
apps/locationService/components/location.c
View file @
0731aeba
...
...
@@ -360,7 +360,8 @@ static void WifiEventHandler(le_wifiClient_Event_t event, void *context)
static
void
Sample
(
psensor_Ref_t
ref
psensor_Ref_t
ref
,
void
*
context
)
{
Scan_t
scan
;
...
...
@@ -455,7 +456,7 @@ COMPONENT_INIT
// Use the periodic sensor component from the Data Hub to implement the timer and Data Hub
// interface. We'll provide samples as JSON structures.
psensor_Create
(
"coordinates"
,
DHUBIO_DATA_TYPE_JSON
,
""
,
Sample
);
psensor_Create
(
"coordinates"
,
DHUBIO_DATA_TYPE_JSON
,
""
,
Sample
,
NULL
);
// Make sure the periodic sensor is enabled and defaults to 30 secs.
dhubIO_SetBooleanDefault
(
PSENSOR_ENABLE
,
true
);
...
...
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