Add string based constructors for UPM sensors

Signed-off-by: Mihai Stefanescu <mihai.stefanescu@rinftech.com>
Signed-off-by: Stefan Andritoiu <stefan.andritoiu@gmail.com>
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:
mihais
2018-03-29 18:03:59 +03:00
committed by Mihai Tudor Panu
parent e4f106a0c7
commit 58ee51c767
11 changed files with 273 additions and 15 deletions

View File

@@ -0,0 +1,18 @@
#include <iostream>
#include <string>
#include <stdexcept>
#include "initioSampleModule.hpp"
using namespace upm;
using namespace std;
initioSampleModule::initioSampleModule(std::string initStr) : mraa::MraaIo(initStr)
{
// Do some processing here
//std::cout << "111 " << leftoverStr << std::endl;
}
initioSampleModule::~initioSampleModule()
{
}