Great tool, works well with VB.net as well as C#!
Was wondering how to tell it to send a binary message such as a WAP push bookmark instead of readable text.
Im using the SubmitSm method and a custom function to convert Hex pairs to a Byte array.
Something like...?
Dim data As New ALT.SMS.SubmitSm
With Data
Dim UDH As New ALT.SMS.UserDataHeader
UDH.Data = HexStringToByteArray(UDHHexString)
.UserDataPdu.Headers.Add(UDH)
.UserDataPdu.ShortMessage = HexStringToByteArray(DataHexString)
End With
Dim Resp As SubmitSmResp = MySmppClient.Submit(data)
[/quote]
Sending Binary messages
Moderator: alt
please help me, i faced some problem. My code sample is here
private ALT.SMS.SmppClient Altsmpp = new ALT.SMS.SmppClient();
---------
---------
Altsmpp.SubmitText(SubmitMode.Payload, orgTon, orgNpi, destination, desTon, desNpi, msisdn, DataCodings.Default, msgBody); // this line shows the problem, Object reference not set to an instance of an object.
private ALT.SMS.SmppClient Altsmpp = new ALT.SMS.SmppClient();
---------
---------
Altsmpp.SubmitText(SubmitMode.Payload, orgTon, orgNpi, destination, desTon, desNpi, msisdn, DataCodings.Default, msgBody); // this line shows the problem, Object reference not set to an instance of an object.
orgTon=0
orgNpi=0
destination=3333
desTon=1
desNpi=1
msisdn=123456789
msgBody=25C81004D454C4F44593A2A3456235A34623542A3466332A3466322A3466332A342366332A342364332A342363332A3312345332A332367332A332367332A342364332A342364332A342364322A342363332A342364332A3466312A332367332A3466332A3466332A342364332A342364332A3466332A342364342A342363322E2A235642
that is my configaration. I have another query, How can i alive the connection, is there any keep alive interval, if any please let me know.
If sdk has any documentation please give me a copy.
orgNpi=0
destination=3333
desTon=1
desNpi=1
msisdn=123456789
msgBody=25C81004D454C4F44593A2A3456235A34623542A3466332A3466322A3466332A342366332A342364332A342363332A3312345332A332367332A332367332A342364332A342364332A342364322A342363332A342364332A3466312A332367332A3466332A3466332A342364332A342364332A3466332A342364342A342363322E2A235642
that is my configaration. I have another query, How can i alive the connection, is there any keep alive interval, if any please let me know.
If sdk has any documentation please give me a copy.