getSensorDataPath function

Future getSensorDataPath()

To check exist metric data - when application run multiple time

Implementation

Future getSensorDataPath() async{
  try {

    Node plugins = await Storage.controller.get(Types.plugins);

    var temp = await plugins.getChildNodesCsv();
    if(temp.isNotEmpty) {

      var tempIDList = temp.split(',');

      await setSensorDataList(Types.users + ':' + Storage.userUUID, tempIDList);
      await setSensorDataList(Types.devices + ':' + Storage.deviceUUID, tempIDList);

    }
  }
  catch (e){
    logger.i('initPlugin Errors');
    logger.e('initPlugin ${e.toString()}');
  }

}