Sending Binary messages
Posted: Tue Feb 20, 2007 1:13 pm
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]
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]