![Kiwi TLG3901BLV2 Скачать руководство пользователя страница 46](http://html.mh-extra.com/html/kiwi/tlg3901blv2/tlg3901blv2_user-manual_1974254046.webp)
Gateway TLG3901B/BLV2 Series User Manual
V2.0.4
45
December 2020
At first, dragging
inject
,
function
,
debug
and
lora
(from output) to
Flow 1
and connecting
these nodes as Figure 4-9. Then, a dialog, Figure 4-10, pops up by double-clicking
inject
node. Choose string type and fill string in
Payload
field.
Figure 4-10 Edit Inject Node
Next step is double-clicking
function
node and input following JavaScript code in the node,
as shown in Figure 4-11. Then, deploy this flow and clicking left part of
inject
node triggers a
packet sent out each time.
var send_string = new Buffer(msg.payload).toString('Base64');
var send_json = '{' +
'"imme":true, ' +
'"freq": 915.5, ' +
'"rfch": 0, ' +
'"powe": 14, ' +
'"modu": "LORA", ' +
'"datr": "SF11BW125", ' +
'"codr": "4/6", ' +
'"ipol": false, ' +
'"size": ' + msg.payload. ', ' +
'"data": "' + send_ '"' +
'}';
msg.payload = send_json;
return msg;
Содержание TLG3901BLV2
Страница 1: ...Gateway TLG3901B BLV2 User Manual V2 0 4 Deccember 2020 ...
Страница 3: ...Gateway TLG3901B BLV2 Series User Manual V2 0 4 II December 2020 9 References 55 10 Certification 56 ...
Страница 23: ...Gateway TLG3901B BLV2 Series User Manual V2 0 4 22 December 2020 Figure 3 17 TLG3901B BLV2 Upgrading ...