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.
Dependents: MbedFileServer_1768MiniDK2 RedWireBridge IssueDebug_gcc MiMicRemoteMCU-for-Mbed ... more
mbed/mod/ModRemoteMcu.cpp@43:a182f2b5ff41, 2013-07-09 (annotated)
- Committer:
- nyatla
- Date:
- Tue Jul 09 12:07:17 2013 +0000
- Revision:
- 43:a182f2b5ff41
- Parent:
- mbed/ModRemoteMcu.cpp@17:f29e1ca90e3d
update to r276;
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| nyatla | 3:0a94993be1f6 | 1 | #include "ModRemoteMcu.h" |
| nyatla | 3:0a94993be1f6 | 2 | #include "HttpdConnection.h" |
| nyatla | 3:0a94993be1f6 | 3 | |
| nyatla | 3:0a94993be1f6 | 4 | namespace MiMic |
| nyatla | 3:0a94993be1f6 | 5 | { |
| nyatla | 7:2b33a8d84eb3 | 6 | ModRemoteMcu::ModRemoteMcu(const char* i_path):ModBaseClass(i_path) |
| nyatla | 3:0a94993be1f6 | 7 | { |
| nyatla | 3:0a94993be1f6 | 8 | } |
| nyatla | 3:0a94993be1f6 | 9 | ModRemoteMcu::ModRemoteMcu() |
| nyatla | 3:0a94993be1f6 | 10 | { |
| nyatla | 3:0a94993be1f6 | 11 | } |
| nyatla | 3:0a94993be1f6 | 12 | ModRemoteMcu::~ModRemoteMcu() |
| nyatla | 3:0a94993be1f6 | 13 | { |
| nyatla | 3:0a94993be1f6 | 14 | } |
| nyatla | 3:0a94993be1f6 | 15 | void ModRemoteMcu::setParam(const char* i_path) |
| nyatla | 3:0a94993be1f6 | 16 | { |
| nyatla | 7:2b33a8d84eb3 | 17 | ModBaseClass::setParam(i_path); |
| nyatla | 3:0a94993be1f6 | 18 | } |
| nyatla | 3:0a94993be1f6 | 19 | bool ModRemoteMcu::execute(HttpdConnection& i_connection) |
| nyatla | 3:0a94993be1f6 | 20 | { |
| nyatla | 3:0a94993be1f6 | 21 | NyLPC_TcModRemoteMcu_t mod; |
| nyatla | 3:0a94993be1f6 | 22 | |
| nyatla | 3:0a94993be1f6 | 23 | //check parametor |
| nyatla | 3:0a94993be1f6 | 24 | if(this->_path==NULL){ |
| nyatla | 3:0a94993be1f6 | 25 | return false; |
| nyatla | 3:0a94993be1f6 | 26 | } |
| nyatla | 3:0a94993be1f6 | 27 | NyLPC_cModRemoteMcu_initialize(&mod,this->_path); |
| nyatla | 3:0a94993be1f6 | 28 | if(NyLPC_cModRemoteMcu_canHandle(&mod,i_connection._ref_inst)){ |
| nyatla | 3:0a94993be1f6 | 29 | NyLPC_cModRemoteMcu_execute(&mod,i_connection._ref_inst); |
| nyatla | 3:0a94993be1f6 | 30 | NyLPC_cModRemoteMcu_finalize(&mod); |
| nyatla | 3:0a94993be1f6 | 31 | return true; |
| nyatla | 3:0a94993be1f6 | 32 | } |
| nyatla | 3:0a94993be1f6 | 33 | NyLPC_cModRemoteMcu_finalize(&mod); |
| nyatla | 3:0a94993be1f6 | 34 | return false; |
| nyatla | 3:0a94993be1f6 | 35 | } |
| nyatla | 3:0a94993be1f6 | 36 | |
| nyatla | 3:0a94993be1f6 | 37 | } |
MiMic Webservice library