This is Webservice SDK for mbed. LPCXpresso1769/LPC1768/FRDM-K64F/LPC4088

Fork of libMiMic by Ryo Iizuka

mbed/mod/ModRemoteMcu.h

Committer:
furutani
Date:
2017-02-24
Revision:
115:fa79286d8ea4
Parent:
43:a182f2b5ff41

File content as of revision 115:fa79286d8ea4:

#pragma once
////////////////////////////////////////////////////////////////////////////////
// ModRemoteMcu.h
////////////////////////////////////////////////////////////////////////////////

#include "NyLPC_net.h"
#include "ModBaseClass.h"


namespace MiMic
{
    class HttpdConnection;
    /**
     * This class is a module for Httpd.
     * The class provides an REST-API to execute MiMic ByteCode.
     * The class is wrapper of NyLPC_TcModRemoteMcu class.
     */
    class ModRemoteMcu:ModBaseClass
    {
    public:
        /**
         * Constructor with parameter initialization.
         */
        ModRemoteMcu(const char* i_path);
        /**
         * Default constructor.
         * Must be call {@link setParam} function after constructed.
         */
        ModRemoteMcu();
        virtual ~ModRemoteMcu();
        void setParam(const char* i_path);
        /**
          * This function processes a request. 
          * The function checks whether a connection has a target request.
          * If necessary, it will transmit a response.
          * @return
          * TRUE if request was processed. otherwise FALSE.
          */
        bool execute(HttpdConnection& i_connection);
    };

}