Socket to Air Windows COM元件 使用說明
函式名稱 |
說明 |
StartCon(ServerIP,ServerPort,UserID,Passwd,ret_code) | 建立與伺服器的連線 |
SendMsg(MobileNum,Message,ret_code,ret_description) | 傳送簡訊 |
SendMsg_Order(MobileNum,Message,Send_Time,ret_code,ret_description) | 傳送預約簡訊 |
QueryMsg(MobileNum,MessageID,ret_code,ret_description) | 查詢簡訊傳送結果 |
EndCon( ) | 結束與伺服器的連線 |
函式參數說明:
參數名稱 |
參數型態 |
in/out |
內容 |
說明 |
ServerIP | BSTR | [in] | Socket to Air伺服器IP | 203.66.172.131 |
ServerPort | BSTR | [in] | Socket to Air伺服器Port | 8000 |
UserID | BSTR | [in] | 登入帳號 | 最長8個字元 |
Passwd | BSTR | [in] | 登入密碼 | 最長16個字元 |
MobileNum | BSTR | [in] | 手機號碼 | 固定為10個字元 |
Message | BSTR | [in] | 簡訊內容 | 最長為159個字元 |
Send_Time | BSTR | [in] | 預約傳送的時間 | 格式:YYMMDDHHMM00(12字元) |
ret_code | int | [out] | 系統回傳的code | 系統回傳的ret_code |
ret_description | BSTR | [out] | 系統回傳的訊息字串 | 系統回傳的ret_description |
註1:ret_code與ret_description為系統回傳值,其值得意義請參考軟體規格說明。
註2:YYMMDDHHMM00->年月日時分秒,秒必須為00。
Ex : 021210110200 表示西元2002年12月10日11點02分
函式回傳值說明:
1. | StartCon(ServerIP,ServerPort,UserID,Passwd,ret_code): | |||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||
2. | SendMsg(MobileNum,Message,ret_code,ret_description)與SendMsg_Order(...): | |||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||
3. | QueryMsg(MobileNum,MessageID,ret_code,ret_description): | |||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||
4. | EndCon():無回傳值 | |||||||||||||||||||||||||||||||||
5. | 其他回傳值說明: | |||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||