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

Show/hide line numbers NyLPC_cUPnP.c Source File

NyLPC_cUPnP.c

00001 #include "NyLPC_cUPnP.h"
00002 
00003 /**
00004  * コンストラクタ
00005  * @param i_ref_root_path
00006  * UPnPサービスのルートパスを指定します。このパスはNyLPC_cModUPnPDevice等のHTTPインタフェイスで使います。
00007  */
00008 void NyLPC_cUPnP_initialize(NyLPC_TcUPnP_t* i_inst,NyLPC_TUInt16 i_http_port,const NyLPC_TChar* i_path,const struct NyLPC_TUPnPDevDescDevice* i_ref_description)
00009 {
00010     i_inst->_ref_root_path=i_path;
00011     i_inst->ref_root_device=i_ref_description;
00012     NyLPC_cSsdpSocket_initialize(&i_inst->_ssdp,i_ref_description,i_http_port,i_path);
00013 }
00014 void NyLPC_cUPnP_finalize(NyLPC_TcUPnP_t* i_inst)
00015 {
00016     NyLPC_Abort();//今は動かない
00017     NyLPC_cSsdpSocket_finalize(&i_inst->_ssdp);
00018 }
00019 /**
00020  * UPnPサービスを開始します。
00021  */
00022 void NyLPC_cUPnP_start(NyLPC_TcUPnP_t* i_inst)
00023 {
00024     //SSDPの開始
00025     NyLPC_cSsdpSocket_start(&i_inst->_ssdp);
00026 }