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

Dependents:   MbedFileServer_1768MiniDK2 RedWireBridge IssueDebug_gcc MiMicRemoteMCU-for-Mbed ... more

Embed: (wiki syntax)

« Back to documentation index

ModJsonRpc Class Reference

ModJsonRpc Class Reference

This class is Websocket module. More...

#include <ModJsonRpc.h>

Inherits MiMic::ModBaseClass.

Public Member Functions

 ModJsonRpc (const char *i_path, const struct NyLPC_TJsonRpcClassDef **i_rpc_table)
bool execute (HttpdConnection &i_connection)
 This function prepares Json rpc loop with websocket negotiation.

Private Member Functions

void setParam (const char *i_path)
virtual bool canHandle (HttpdConnection &i_connection)
 URLとパスプレフィクスi_pathを比較して、処理対象のURLかを計算します。 URLに'/i_path/'を含むパスを処理対象とみなします。

Detailed Description

This class is Websocket module.

The class provides 3 services.

  • d.xml - a device description.
  • control/xx - soap handler
  • event/xx -event handler.

Definition at line 21 of file ModJsonRpc.h.


Constructor & Destructor Documentation

ModJsonRpc ( const char *  i_path,
const struct NyLPC_TJsonRpcClassDef **  i_rpc_table 
)
Parameters:
i_rpc_tableAn address of Json RPC functions table.

Definition at line 24 of file ModJsonRpc.cpp.


Member Function Documentation

bool execute ( HttpdConnection &  i_connection )

This function prepares Json rpc loop with websocket negotiation.

Returns:
true if successful;otherwishe false.

Definition at line 50 of file ModJsonRpc.cpp.