NCL Community Forum Index
  Home   Login   Register   Help   Memberlist   Search   NCL  

NCL Community Forum Index » Provato Support » Sending Binary Messages
Post new topic  Reply to topic View previous topic :: View next topic 
Sending Binary Messages
PostPosted: Tue Jun 27, 2006 9:17 am Reply with quote
Administrator
Site Admin
Joined: 11 Aug 2004
Posts: 237




To send a binary message use

Code:
VivatoMessage msg = new Vivato Message()
msg.setContentType(VivatoMessage.BINARY_SMS_TYPE); // or text/vnc.ncl.binarysms
msg.setContent("DEADBEEF");


If the binary message contains a user data header (UDH) then
Code:
msg.setContentType(VivatoMessage.BINARY_SMS_WITHUDH_TYPE); // or text/vnc.ncl.binarysms.withudh
msg.setContent("050003010101DEADBEEF");

This will cause the UDHI flag to be set in the outbound message. The User Data Header should include it's length as the first byte as per the normal UDH format.
View user's profile Send private message

Sending Binary Messages
 NCL Community Forum Index » Provato Support
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT  
Page 1 of 1  

  
  
 Post new topic  Reply to topic