Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Send a long message over 255 #179

Open
Wgjamia opened this issue Oct 19, 2022 · 2 comments
Open

Send a long message over 255 #179

Wgjamia opened this issue Oct 19, 2022 · 2 comments

Comments

@Wgjamia
Copy link

Wgjamia commented Oct 19, 2022

Hi,
Could you please help me how to send long message over 255 characters use jsmpp.

@Wgjamia
Copy link
Author

Wgjamia commented Oct 19, 2022

Use payload message Tlv

@pmoerenhout
Copy link
Member

pmoerenhout commented Jan 16, 2023

If you service provider support long messages, you can do:

OptionalParameter messagePayload = OptionalParameters.get(OptionalParameter.Message_payload.class, message);

whereby message are the bytes to be send (the message encoded according the DCS).
Otherwise, you send the message in segments, see SubmitLongMessageExample.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants