Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of libMiMic by
mbed/ModMiMicSetting.cpp
- Committer:
- nyatla
- Date:
- 2013-04-26
- Revision:
- 17:f29e1ca90e3d
- Parent:
- cpp/ModMiMicSetting.cpp@ 14:4618692ec239
File content as of revision 17:f29e1ca90e3d:
#include "ModMiMicSetting.h"
#include "HttpdConnection.h"
#include "NyLPC_net.h"
namespace MiMic
{
ModMiMicSetting::ModMiMicSetting(const char* i_path):ModBaseClass(i_path)
{
}
ModMiMicSetting::ModMiMicSetting():ModBaseClass()
{
}
ModMiMicSetting::~ModMiMicSetting()
{
}
void ModMiMicSetting::setParam(const char* i_path)
{
ModBaseClass::setParam(i_path);
}
bool ModMiMicSetting::execute(HttpdConnection& i_connection)
{
NyLPC_TcModMiMicSetting_t mod;
//check parametor
if(this->_path==NULL){
return false;
}
NyLPC_cModMiMicSetting_initialize(&mod,this->_path);
if(NyLPC_cModMiMicSetting_canHandle(&mod,i_connection._ref_inst)){
NyLPC_cModMiMicSetting_execute(&mod,i_connection._ref_inst);
NyLPC_cModMiMicSetting_finalize(&mod);
return true;
}
NyLPC_cModMiMicSetting_finalize(&mod);
return false;
}
}
