0
나는 node-smpp을 사용 중이며 "deliver_sm"요청을 보내고 user_message_reference에 "TLV"응답을 추가하는 방법을 알고 싶습니다. node-smpp/lib/smpp.js의deliver_sm 요청을 보내는 방법 node.js에서 user_message_reference TLV 추가 SMPP
추출 :
exports.addTLV = function(tag, options) {
options.tag = tag;
defs.tlvs[tlv] = options;
defs.tlvsById[options.id] = options;
};
테스트 코드 :
var tlv = new Object();
tlv.tag = 0x001E; // smpp.receipted_message_id;
tlv.lenght = msgid.lenght;
tlv.value = msgid;
smpp.addTLV(tlv,tlv);
결과 :
defs.tlvs[tlv] = options;
^
ReferenceError: tlv is not defined
SMPP는 모듈 이름입니까? 또한 TLV는 무엇을 의미합니까? – booyaa