2
這裏是我的代碼:如何在GSMComm庫中連接長的SMS?
根據這一page的CreateConcatTextMessage
方法返回SmsSubmitPdu[]
類型的數組,但是,當我嘗試用SendMessages
發送,我收到了MessageServiceError 500
。我錯過了什麼?
SmsSubmitPdu[] pdu2;
try{
pdu2 = SmartMessageFactory.CreateConcatTextMessage("My name is Barry Allen. And I am the fastest man alive. When I was a child I saw my mother killed by something impossible. My father went to prison for her murder.", "+639234597676");
comm.SendMessages(pdu2);
}
catch (MessageServiceErrorException e500){
MessageBox.Show(e500.ToString(), "Information", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
}
catch (CommException e501){
MessageBox.Show(e501.ToString(), "Information", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
}