BigW Consortium Gitlab

Commit 0731aeba by Zahid Chowdhury

Using dataHub from Legato 19.02.0 interface

parent ab70d909
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment