Skip to content

Commit

Permalink
Create Remote Sensors only for Collector Node
Browse files Browse the repository at this point in the history
  • Loading branch information
lupyuen committed May 12, 2019
1 parent ab9ec03 commit 3b8c71c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libs/remote_sensor/src/creator.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ static int config_device(const char *name) {

// Create the device instance and configure it. Called by sysinit() during startup, defined in pkg.yml.
void DEVICE_CREATE(void) {
if (!is_collector_node()) { return; } // Remote Sensors are applicable only for Collector Node.
for (int i = 0; i < DEVICE_COUNT; i++) {
console_printf("RSN listen %s\n", DEVICE_NAME[i]); ////

Expand Down

0 comments on commit 3b8c71c

Please sign in to comment.