Dependents:
ThingPlug_Ethernet_Example
Fork of
GMMP_mbed
by Eric Jung
« Back to documentation index
GMMP_Operation.cpp File Reference
Go to the source code of this file.
Functions
int GMMP_SetReg (const char *pszAuthID, const char *pszAuthKey, const char *pszDomainCode, const char *pszGWID, const char *pszManufactureID)
GW/Device 등록/해지 Request 기능
int GMMP_SetDeReg (const char *pszAuthID, const char *pszAuthKey, const char *pszDomainCode, const char *pszGWID, const char *pszDeviceID)
int GMMP_SetProfile (const char *pszAuthID, const char *pszAuthKey, const char *pszDomainCode, const char *pszGWID, const char *pszDeviceID)
int GMMP_SetDelivery (const char *pszAuthID, const char *pszAuthKey, const char *pszDomainCode, const char *pszGWID, const char *pszDeviceID, const char cReportType, const char cMediaType, const char *pszMessageBody, const int nTotalCount, const int nCurrentCount)
int GMMP_SetControl (const char *pszAuthID, const char *pszAuthKey, const char *pszDomainCode, const char *pszGWID, const char *pszDeviceID, const char cControlType, const char cResultCode)
int GMMP_SetNotifi (const char *pszAuthID, const char *pszAuthKey, const char *pszDomainCode, const char *pszGWID, const char *pszDeviceID, const char cControlType, const char cResultCode, const char *pszMessageBody, const int nMessageSize)
int GMMP_SetHB (const char *pszAuthID, const char *pszAuthKey, const char *pszDomainCode, const char *pszGWID)
int GMMP_GetReg (GwRegist_Rsp *pstGwRegist_Rsp, DeviceRegist_Rsp *pstDeviceRegist_Rsp)
int GMMP_GetDeReg (GwDeRegist_Rsp *pstGwRegist_Rsp, DeviceDeRegist_Rsp *pstDeviceDeRegist_Rsp)
int GMMP_GetProfile (Profile_Rsp *pstProfile_Rsp)
int GMMP_GetDelivery (Delivery_Rsp *pstDelivery_Rsp)
int GMMP_GetNotifi (Notifi_Rsp *pstNotifi_Rsp)
int GMMP_GetHB (HB_Rsp *pstHB_Rsp)
int GMMP_Read (GMMPHeader *pstGMMPHeader, void **pBody)
int GMMP_Recv (GMMPHeader *pstGMMPHeader, void *pBody)
int GMMP_Ctrl_Recv (GMMPHeader *pstGMMPHeader, stControlReqHdr *pstReqHdr)
void SetTID (long nTid)
long GetTID ()
int SetHeader (void *pData, int nPacketSize, int nTotalCount, int nCurrentCount, const char cMessageType, const char *pszAuthID, const char *pszAuthKey)
int SetIntiSocket (void)
char * MallocBody (const char Type, int *nBodySize)
int GMMP_Trace (GMMPHeader *pstGMMPHeader, void *pBody)
Detailed Description
Date: 2015/07/20
Version: 0.0.1.0
Definition in file GMMP_Operation.cpp .
Function Documentation
Parameters:
pstGwRegist_Rsp
pstDeviceDeRegist_Rsp
Returns:
Definition at line 478 of file GMMP_Operation.cpp .
int GMMP_GetHB
(
HB_Rsp *
pstHB_Rsp )
Parameters:
pstGwRegist_Rsp
pstDeviceRegist_Rsp
Returns:
Definition at line 458 of file GMMP_Operation.cpp .
int GMMP_Read
(
GMMPHeader *
pstGMMPHeader ,
void **
pBody
)
int GMMP_Recv
(
GMMPHeader *
pstGMMPHeader ,
void *
pBody
)
int GMMP_SetControl
(
const char *
pszAuthID ,
const char *
pszAuthKey ,
const char *
pszDomainCode ,
const char *
pszGWID ,
const char *
pszDeviceID ,
const char
cControlType ,
const char
cResultCode
)
Parameters:
pszAuthID
pszAuthKey
pszDomainCode
pszGWID
pszDeviceID
cControlType
cResultCode
Returns:
Definition at line 290 of file GMMP_Operation.cpp .
int GMMP_SetDelivery
(
const char *
pszAuthID ,
const char *
pszAuthKey ,
const char *
pszDomainCode ,
const char *
pszGWID ,
const char *
pszDeviceID ,
const char
cReportType ,
const char
cMediaType ,
const char *
pszMessageBody ,
const int
nTotalCount ,
const int
nCurrentCount
)
Parameters:
pszAuthID
pszAuthKey
pszDomainCode
pszGWID
pszDeviceID
cReportType
cMediaType
pszMessageBody
nTotalCount
nCurrentCount
Returns:
Definition at line 201 of file GMMP_Operation.cpp .
int GMMP_SetDeReg
(
const char *
pszAuthID ,
const char *
pszAuthKey ,
const char *
pszDomainCode ,
const char *
pszGWID ,
const char *
pszDeviceID
)
Parameters:
pszAuthID
pszAuthKey
pszDomainCode
pszGWID
pszDeviceID
Returns:
Parameters:
pszAuthID
pszAuthKey
pszDomainCode
pszGWID
pszDeviceID
Returns:
Parameters:
pszAuthID
pszAuthKey
pszDomainCode
pszGWID
pszDeviceID
Returns:
Parameters:
pszAuthID
pszAuthKey
pszDomainCode
pszGWID
pszDeviceID
Returns:
Definition at line 86 of file GMMP_Operation.cpp .
int GMMP_SetHB
(
const char *
pszAuthID ,
const char *
pszAuthKey ,
const char *
pszDomainCode ,
const char *
pszGWID
)
Parameters:
pszAuthID
pszAuthKey
pszDomainCode
pszGWID
Returns:
Definition at line 416 of file GMMP_Operation.cpp .
int GMMP_SetNotifi
(
const char *
pszAuthID ,
const char *
pszAuthKey ,
const char *
pszDomainCode ,
const char *
pszGWID ,
const char *
pszDeviceID ,
const char
cControlType ,
const char
cResultCode ,
const char *
pszMessageBody ,
const int
nMessageSize
)
Parameters:
pszAuthID
pszAuthKey
pszDomainCode
pszGWID
pszDeviceID
cControlType
cResultCode
pszMessageBody
nMessageSize
Returns:
Definition at line 343 of file GMMP_Operation.cpp .
int GMMP_SetProfile
(
const char *
pszAuthID ,
const char *
pszAuthKey ,
const char *
pszDomainCode ,
const char *
pszGWID ,
const char *
pszDeviceID
)
Parameters:
pszAuthID
pszAuthKey
pszDomainCode
pszGWID
pszDeviceID
Returns:
Definition at line 151 of file GMMP_Operation.cpp .
int GMMP_SetReg
(
const char *
pszAuthID ,
const char *
pszAuthKey ,
const char *
pszDomainCode ,
const char *
pszGWID ,
const char *
pszManufactureID
)
GW/Device 등록/해지 Request 기능
Parameters:
pszAuthID Auth ID 문자열 입력
pszAuthKey Auth Key 문자열 입력
pszDomainCode Domain Code
pszGWID GW ID
pszManufactureID
Returns:
Definition at line 28 of file GMMP_Operation.cpp .
int GMMP_Trace
(
GMMPHeader *
pstGMMPHeader ,
void *
pBody
)
char* MallocBody
(
const char
Type ,
int *
nOutBufferSize
)
int SetHeader
(
void *
pData ,
int
nPacketSize ,
int
nTotalCount ,
int
nCurrentCount ,
const char
cMessageType ,
const char *
pszAuthID ,
const char *
pszAuthKey
)
Parameters:
pData
nPacketSize
nTotalCount
nCurrentCount
cMessageType
pszAuthID
pszAuthKey
Returns:
Definition at line 722 of file GMMP_Operation.cpp .
int SetIntiSocket
(
void
)
void SetTID
(
long
nTid )