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
ModRemoteMcu.h
00001 #pragma once 00002 //////////////////////////////////////////////////////////////////////////////// 00003 // ModRemoteMcu.h 00004 //////////////////////////////////////////////////////////////////////////////// 00005 00006 #include "NyLPC_net.h" 00007 #include "ModBaseClass.h" 00008 00009 00010 namespace MiMic 00011 { 00012 class HttpdConnection; 00013 /** 00014 * This class is a module for Httpd. 00015 * The class provides an REST-API to execute MiMic ByteCode. 00016 * The class is wrapper of NyLPC_TcModRemoteMcu class. 00017 */ 00018 class ModRemoteMcu:ModBaseClass 00019 { 00020 public: 00021 /** 00022 * Constructor with parameter initialization. 00023 */ 00024 ModRemoteMcu(const char* i_path); 00025 /** 00026 * Default constructor. 00027 * Must be call {@link setParam} function after constructed. 00028 */ 00029 ModRemoteMcu(); 00030 virtual ~ModRemoteMcu(); 00031 void setParam(const char* i_path); 00032 /** 00033 * This function processes a request. 00034 * The function checks whether a connection has a target request. 00035 * If necessary, it will transmit a response. 00036 * @return 00037 * TRUE if request was processed. otherwise FALSE. 00038 */ 00039 bool execute(HttpdConnection& i_connection); 00040 }; 00041 00042 }
Generated on Tue Jul 12 2022 16:22:56 by
