【问题标题】:SMPP connection using TLV使用 TLV 的 SMPP 连接
【发布时间】:2016-09-27 04:59:05
【问题描述】:

我想使用 Open Smpp 协议向设备发送命令。 API 人员向我提供了 ProgramID,但我没有在开放的 smpp api 中找到任何接受 programId 的方法。

So i thought to add it in setExtraOptional(TLV tlv)
but i am not able to set TLV parameter.
I have below values, 

tag = 0x1234, 
programId = 12345

How can i build the TLV from above values?

提前感谢您的帮助。

【问题讨论】:

  • 没有人解决这个问题吗?
  • 你可以简单的添加 request.setExtraOptional((short) 0x1400, new ByteBuffer("programId:12345,String,5".getBytes()));作为发送 SM 请求的额外参数

标签: java sms smpp tlv opensmpp


【解决方案1】:

您可以简单地添加 request.setExtraOptional((short) 0x1400, new ByteBuffer("programId:12345,String,5".getBytes()));作为发送 SM 请求的额外参数

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多