Files
OpenMQTTGateway/use/lora.html
DigiH 8889d3720e deploy: 296248f64b
deploy: 2440c143c0

deploy: 2440c143c0

deploy: 296248f64b

deploy: 296248f64b

deploy: a0919bbba4

deploy: 6a4b38a0cb

deploy: 4c633da151

deploy: 5a07020144

deploy: 25af43bdeb

deploy: 771b792484

deploy: 771b792484

deploy: 7db2e93c28

deploy: 5421f0e995

deploy: 5421f0e995

deploy: 5421f0e995

deploy: 5421f0e995

deploy: 5421f0e995

deploy: fb42293631

deploy: fb42293631

deploy: fb42293631

deploy: fb42293631

deploy: fb42293631

deploy: 87b26c867f

deploy: 2fcfc0f6d2

deploy: 2fcfc0f6d2

deploy: 2fcfc0f6d2

deploy: 2fcfc0f6d2

deploy: 54b0eaeebf

deploy: 28b97183be

deploy: cf21aed90c

deploy: 5a36034a2f

deploy: 811bc1f608

deploy: 811bc1f608

deploy: 673a895d44

deploy: 673a895d44

deploy: ca9ef664ab

deploy: ca9ef664ab

deploy: 10d7f7465ddd65a1ddcb1bc32504889d85602c4b

deploy: 495e1ce6b42f0293e4cf35c41a6bdb0bd229fa07

deploy: ca9ef664ab

deploy: ca9ef664ab

deploy: ca9ef664ab

deploy: 5e01f40829

deploy: 5e01f40829

deploy: 5e01f40829

deploy: 5e01f40829

deploy: 5e01f40829

deploy: 7a8e8483fd

deploy: 3984656712

deploy: 3984656712

deploy: 3984656712

deploy: 3984656712

deploy: 3984656712

deploy: 3984656712

deploy: 3984656712

deploy: 3984656712

deploy: 3984656712

deploy: 3984656712

deploy: dfa94588d6

deploy: dfa94588d6

deploy: dfa94588d6

deploy: dfa94588d6

deploy: e27e055bf8

deploy: cbec4292de
2024-02-19 12:44:47 -06:00

79 lines
32 KiB
HTML

<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>LORA gateway | OpenMQTTGateway v1.6.0</title>
<meta name="generator" content="VuePress 1.9.8">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="icon" href="/img/Openmqttgateway_logo_mini.png">
<link rel="manifest" href="/manifest.json">
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="mask-icon" href="/icons/safari-pinned-tab.svg" color="#3eaf7c">
<script type="module" src="https://unpkg.com/esp-web-tools@3.4.2/dist/web/install-button.js?module"></script>
<meta name="description" content="One gateway, many technologies: MQTT gateway for ESP8266, ESP32, Sonoff RF Bridge or Arduino with bidirectional 433mhz/315mhz/868mhz, Infrared communications, BLE, beacons detection, mi flora / mi jia / LYWSD02/ Mi Scale compatibility, SMS &amp; LORA.">
<meta name="theme-color" content="#3eaf7c">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="msapplication-TileImage" content="/favicon-144x144.png">
<meta name="msapplication-TileColor" content="#000000">
<link rel="preload" href="/assets/css/0.styles.7f8e66f6.css" as="style"><link rel="preload" href="/assets/js/app.a8101403.js" as="script"><link rel="preload" href="/assets/js/2.a6330fef.js" as="script"><link rel="preload" href="/assets/js/26.803f9d00.js" as="script"><link rel="prefetch" href="/assets/js/10.3bf3392e.js"><link rel="prefetch" href="/assets/js/100.864bcaae.js"><link rel="prefetch" href="/assets/js/101.7e051fa6.js"><link rel="prefetch" href="/assets/js/102.fc219a72.js"><link rel="prefetch" href="/assets/js/103.7e8f2737.js"><link rel="prefetch" href="/assets/js/104.ba4237ad.js"><link rel="prefetch" href="/assets/js/105.0ec04e8a.js"><link rel="prefetch" href="/assets/js/106.fac6d9bd.js"><link rel="prefetch" href="/assets/js/107.41c49f97.js"><link rel="prefetch" href="/assets/js/108.61155cf4.js"><link rel="prefetch" href="/assets/js/109.bb845863.js"><link rel="prefetch" href="/assets/js/11.e740d1f2.js"><link rel="prefetch" href="/assets/js/110.abc5d7c2.js"><link rel="prefetch" href="/assets/js/111.b8497c11.js"><link rel="prefetch" href="/assets/js/112.c36ad65f.js"><link rel="prefetch" href="/assets/js/113.5f3141de.js"><link rel="prefetch" href="/assets/js/114.f990b138.js"><link rel="prefetch" href="/assets/js/115.8eed4579.js"><link rel="prefetch" href="/assets/js/116.72e2c9f2.js"><link rel="prefetch" href="/assets/js/117.b56c732f.js"><link rel="prefetch" href="/assets/js/118.e358b51e.js"><link rel="prefetch" href="/assets/js/119.f7dc3fd2.js"><link rel="prefetch" href="/assets/js/12.12f354b3.js"><link rel="prefetch" href="/assets/js/13.c98903f6.js"><link rel="prefetch" href="/assets/js/14.9f5422da.js"><link rel="prefetch" href="/assets/js/15.53860aa8.js"><link rel="prefetch" href="/assets/js/16.8ce0807b.js"><link rel="prefetch" href="/assets/js/17.3f431501.js"><link rel="prefetch" href="/assets/js/18.abbfca7e.js"><link rel="prefetch" href="/assets/js/19.c3f8cea0.js"><link rel="prefetch" href="/assets/js/20.8772f436.js"><link rel="prefetch" href="/assets/js/21.ae3dc22f.js"><link rel="prefetch" href="/assets/js/22.82c5c00b.js"><link rel="prefetch" href="/assets/js/23.a7e36505.js"><link rel="prefetch" href="/assets/js/24.872a1e59.js"><link rel="prefetch" href="/assets/js/25.68cf5ee4.js"><link rel="prefetch" href="/assets/js/27.252738c2.js"><link rel="prefetch" href="/assets/js/28.165f5a16.js"><link rel="prefetch" href="/assets/js/29.342deda1.js"><link rel="prefetch" href="/assets/js/3.db6ea314.js"><link rel="prefetch" href="/assets/js/30.a4a95841.js"><link rel="prefetch" href="/assets/js/31.2284890e.js"><link rel="prefetch" href="/assets/js/32.e0886312.js"><link rel="prefetch" href="/assets/js/33.4b3e573d.js"><link rel="prefetch" href="/assets/js/34.4b6249db.js"><link rel="prefetch" href="/assets/js/35.35226a53.js"><link rel="prefetch" href="/assets/js/36.1c738f7b.js"><link rel="prefetch" href="/assets/js/37.a13982eb.js"><link rel="prefetch" href="/assets/js/38.7c8a34c4.js"><link rel="prefetch" href="/assets/js/39.35df8fb3.js"><link rel="prefetch" href="/assets/js/4.463f3dd1.js"><link rel="prefetch" href="/assets/js/40.91cb9696.js"><link rel="prefetch" href="/assets/js/41.99b64b2a.js"><link rel="prefetch" href="/assets/js/42.748064dd.js"><link rel="prefetch" href="/assets/js/43.59829f67.js"><link rel="prefetch" href="/assets/js/44.194d6404.js"><link rel="prefetch" href="/assets/js/45.51f9ed38.js"><link rel="prefetch" href="/assets/js/46.4e75d6a6.js"><link rel="prefetch" href="/assets/js/47.5e7f402c.js"><link rel="prefetch" href="/assets/js/48.50581f5d.js"><link rel="prefetch" href="/assets/js/49.38813a3e.js"><link rel="prefetch" href="/assets/js/5.b38ebc20.js"><link rel="prefetch" href="/assets/js/50.fca7116c.js"><link rel="prefetch" href="/assets/js/51.79d51f20.js"><link rel="prefetch" href="/assets/js/52.276b36f2.js"><link rel="prefetch" href="/assets/js/53.48628f9e.js"><link rel="prefetch" href="/assets/js/54.f4629f0b.js"><link rel="prefetch" href="/assets/js/55.8bd72726.js"><link rel="prefetch" href="/assets/js/56.4e9649dd.js"><link rel="prefetch" href="/assets/js/57.f661d227.js"><link rel="prefetch" href="/assets/js/58.3dbefc68.js"><link rel="prefetch" href="/assets/js/59.dca92ef6.js"><link rel="prefetch" href="/assets/js/6.b8e1b615.js"><link rel="prefetch" href="/assets/js/60.7ef87e1c.js"><link rel="prefetch" href="/assets/js/61.f644b0b7.js"><link rel="prefetch" href="/assets/js/62.d17ad4e1.js"><link rel="prefetch" href="/assets/js/63.a3b06db7.js"><link rel="prefetch" href="/assets/js/64.02232795.js"><link rel="prefetch" href="/assets/js/65.8b531e34.js"><link rel="prefetch" href="/assets/js/66.45c70fc5.js"><link rel="prefetch" href="/assets/js/67.09762414.js"><link rel="prefetch" href="/assets/js/68.28adeeb3.js"><link rel="prefetch" href="/assets/js/69.71fd0a70.js"><link rel="prefetch" href="/assets/js/7.40835015.js"><link rel="prefetch" href="/assets/js/70.4afde4dc.js"><link rel="prefetch" href="/assets/js/71.36d570b5.js"><link rel="prefetch" href="/assets/js/72.dae075c9.js"><link rel="prefetch" href="/assets/js/73.1f8230c8.js"><link rel="prefetch" href="/assets/js/74.b03bb874.js"><link rel="prefetch" href="/assets/js/75.33e77ff5.js"><link rel="prefetch" href="/assets/js/76.f6b3546f.js"><link rel="prefetch" href="/assets/js/77.20276536.js"><link rel="prefetch" href="/assets/js/78.4150f2bb.js"><link rel="prefetch" href="/assets/js/79.8e13dcf4.js"><link rel="prefetch" href="/assets/js/8.91111a02.js"><link rel="prefetch" href="/assets/js/80.77656735.js"><link rel="prefetch" href="/assets/js/81.794b7874.js"><link rel="prefetch" href="/assets/js/82.4b353405.js"><link rel="prefetch" href="/assets/js/83.186428bd.js"><link rel="prefetch" href="/assets/js/84.802c2abf.js"><link rel="prefetch" href="/assets/js/85.d2f38121.js"><link rel="prefetch" href="/assets/js/86.1d8f9c18.js"><link rel="prefetch" href="/assets/js/87.d4195c63.js"><link rel="prefetch" href="/assets/js/88.47bb2294.js"><link rel="prefetch" href="/assets/js/89.86910dc4.js"><link rel="prefetch" href="/assets/js/9.7d95995f.js"><link rel="prefetch" href="/assets/js/90.5ef2583f.js"><link rel="prefetch" href="/assets/js/91.8e431909.js"><link rel="prefetch" href="/assets/js/92.ae136b5c.js"><link rel="prefetch" href="/assets/js/93.27cb3dd1.js"><link rel="prefetch" href="/assets/js/94.45aa70b7.js"><link rel="prefetch" href="/assets/js/95.5c8c9473.js"><link rel="prefetch" href="/assets/js/96.dfdba9f5.js"><link rel="prefetch" href="/assets/js/97.c01f200e.js"><link rel="prefetch" href="/assets/js/98.d06ed080.js"><link rel="prefetch" href="/assets/js/99.f20c2428.js">
<link rel="stylesheet" href="/assets/css/0.styles.7f8e66f6.css">
</head>
<body>
<div id="app" data-server-rendered="true"><div class="theme-container"><header class="navbar"><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/" class="home-link router-link-active"><!----> <span class="site-name">OpenMQTTGateway v1.6.0</span></a> <div class="links"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><a href="https://shop.theengs.io/" target="_blank" rel="noopener noreferrer" class="nav-link external">
Shop🆕
<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></div><div class="nav-item"><a href="https://1technophile.blogspot.com" target="_blank" rel="noopener noreferrer" class="nav-link external">
Blog
<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></div><div class="nav-item"><a href="/" class="nav-link">
Docs
</a></div><div class="nav-item"><a href="https://community.openmqttgateway.com" target="_self" class="nav-link external">
Community
<!----></a></div><div class="nav-item"><a href="https://compatible.openmqttgateway.com/index.php/devices" target="_self" class="nav-link external">
Devices
<!----></a></div><div class="nav-item"><a href="/upload/web-install.html" class="nav-link">
Upload
</a></div><div class="nav-item"><a href="https://app.theengs.io/" target="_blank" rel="noopener noreferrer" class="nav-link external">
Theengs
<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></div> <a href="https://github.com/1technophile/OpenMQTTGateway" target="_blank" rel="noopener noreferrer" class="repo-link">
GitHub
<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></nav></div></header> <div class="sidebar-mask"></div> <aside class="sidebar"><nav class="nav-links"><div class="nav-item"><a href="https://shop.theengs.io/" target="_blank" rel="noopener noreferrer" class="nav-link external">
Shop🆕
<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></div><div class="nav-item"><a href="https://1technophile.blogspot.com" target="_blank" rel="noopener noreferrer" class="nav-link external">
Blog
<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></div><div class="nav-item"><a href="/" class="nav-link">
Docs
</a></div><div class="nav-item"><a href="https://community.openmqttgateway.com" target="_self" class="nav-link external">
Community
<!----></a></div><div class="nav-item"><a href="https://compatible.openmqttgateway.com/index.php/devices" target="_self" class="nav-link external">
Devices
<!----></a></div><div class="nav-item"><a href="/upload/web-install.html" class="nav-link">
Upload
</a></div><div class="nav-item"><a href="https://app.theengs.io/" target="_blank" rel="noopener noreferrer" class="nav-link external">
Theengs
<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></div> <a href="https://github.com/1technophile/OpenMQTTGateway" target="_blank" rel="noopener noreferrer" class="repo-link">
GitHub
<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></nav> <ul class="sidebar-links"><li><a href="/" aria-current="page" class="sidebar-link">0 - What is it for 🏠</a></li><li><section class="sidebar-group collapsable depth-0"><p class="sidebar-heading"><span>1 - Prerequisites🧭</span> <span class="arrow right"></span></p> <!----></section></li><li><section class="sidebar-group collapsable depth-0"><p class="sidebar-heading"><span>2 - Set it up 🔨</span> <span class="arrow right"></span></p> <!----></section></li><li><section class="sidebar-group collapsable depth-0"><p class="sidebar-heading"><span>3 - Upload ➡️</span> <span class="arrow right"></span></p> <!----></section></li><li><section class="sidebar-group collapsable depth-0"><p class="sidebar-heading open"><span>4 - Use ✈️</span> <span class="arrow down"></span></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/use/rf.html" class="sidebar-link">RF gateways (433mhz/315mhz)</a></li><li><a href="/use/ble.html" class="sidebar-link">BLE gateway</a></li><li><a href="/use/ir.html" class="sidebar-link">IR gateway</a></li><li><a href="/use/lora.html" aria-current="page" class="active sidebar-link">LORA gateway</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/use/lora.html#receiving-data-from-lora-signal" class="sidebar-link">Receiving data from LORA signal</a></li><li class="sidebar-sub-header"><a href="/use/lora.html#send-data-by-mqtt-to-convert-it-on-lora-signal" class="sidebar-link">Send data by MQTT to convert it on LORA signal</a></li><li class="sidebar-sub-header"><a href="/use/lora.html#send-data-by-mqtt-with-advanced-lora-parameters" class="sidebar-link">Send data by MQTT with advanced LORA parameters</a></li></ul></li><li><a href="/use/gsm.html" class="sidebar-link">GSM 2G gateway</a></li><li><a href="/use/rs232.html" class="sidebar-link">RS232 gateway</a></li><li><a href="/use/rfm69.html" class="sidebar-link">RFM69 gateway</a></li><li><a href="/use/sensors.html" class="sidebar-link">Sensors</a></li><li><a href="/use/actuators.html" class="sidebar-link">Actuators</a></li><li><a href="/use/boards.html" class="sidebar-link">Boards</a></li><li><a href="/use/displays.html" class="sidebar-link">Displays</a></li><li><a href="/use/gateway.html" class="sidebar-link">System commands (ESP only)</a></li><li><a href="/use/webui.html" class="sidebar-link">WebUI</a></li></ul></section></li><li><section class="sidebar-group collapsable depth-0"><p class="sidebar-heading"><span>5 - Integrate 🎉</span> <span class="arrow right"></span></p> <!----></section></li><li><section class="sidebar-group collapsable depth-0"><p class="sidebar-heading"><span>6 - Participate 💻</span> <span class="arrow right"></span></p> <!----></section></li></ul> </aside> <main class="page"> <div class="theme-default-content content__default"><h1 id="lora-gateway"><a href="#lora-gateway" class="header-anchor">#</a> LORA gateway</h1> <p>Tutorial on how to leverage LORA for a mailbox sensor from <a href="https://www.youtube.com/channel/UCz75N6inuLHXnRC5tqagNLw" target="_blank" rel="noopener noreferrer">PricelessToolkit<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a>:
<iframe width="560" height="315" src="https://www.youtube.com/embed/6DftaHxDawM" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen="allowfullscreen"></iframe></p> <h2 id="receiving-data-from-lora-signal"><a href="#receiving-data-from-lora-signal" class="header-anchor">#</a> Receiving data from LORA signal</h2> <p>Subscribe to all the messages with mosquitto or open your MQTT client software:</p> <p><code>sudo mosquitto_sub -t +/# -v</code></p> <p>Generate your LORA signals by using another TTGO LORA module, you can flash the sender program from <a href="https://github.com/LilyGO/TTGO-LORA32-V2.0" target="_blank" rel="noopener noreferrer">this repository<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a> and the SSD1306 library <a href="https://github.com/ThingPulse/esp8266-oled-ssd1306" target="_blank" rel="noopener noreferrer">there<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></p> <p><img src="/assets/img/OpenMQTTGateway_TTGO32_LORA_Send.e375b049.jpg" alt=""></p> <p>Once one board flashed with OMG and the other with the sender program you should receive regular packets into <code>home/OpenMQTTGateway_ESP32_LORA_TEST/LORAtoMQTT</code> like below:</p> <div class="language-json line-numbers-mode"><pre class="language-json"><code><span class="token punctuation">{</span><span class="token property">&quot;rssi&quot;</span><span class="token operator">:</span><span class="token number">-16</span><span class="token punctuation">,</span><span class="token property">&quot;snr&quot;</span><span class="token operator">:</span><span class="token number">9.25</span><span class="token punctuation">,</span><span class="token property">&quot;pferror&quot;</span><span class="token operator">:</span><span class="token number">-3598</span><span class="token punctuation">,</span><span class="token property">&quot;packetSize&quot;</span><span class="token operator">:</span><span class="token number">9</span><span class="token punctuation">,</span><span class="token property">&quot;message&quot;</span><span class="token operator">:</span><span class="token string">&quot;hello 35&quot;</span><span class="token punctuation">}</span>
<span class="token punctuation">{</span><span class="token property">&quot;rssi&quot;</span><span class="token operator">:</span><span class="token number">-26</span><span class="token punctuation">,</span><span class="token property">&quot;snr&quot;</span><span class="token operator">:</span><span class="token number">9</span><span class="token punctuation">,</span><span class="token property">&quot;pferror&quot;</span><span class="token operator">:</span><span class="token number">-3598</span><span class="token punctuation">,</span><span class="token property">&quot;packetSize&quot;</span><span class="token operator">:</span><span class="token number">9</span><span class="token punctuation">,</span><span class="token property">&quot;message&quot;</span><span class="token operator">:</span><span class="token string">&quot;hello 36&quot;</span><span class="token punctuation">}</span>
<span class="token punctuation">{</span><span class="token property">&quot;rssi&quot;</span><span class="token operator">:</span><span class="token number">-16</span><span class="token punctuation">,</span><span class="token property">&quot;snr&quot;</span><span class="token operator">:</span><span class="token number">9.5</span><span class="token punctuation">,</span><span class="token property">&quot;pferror&quot;</span><span class="token operator">:</span><span class="token number">-3581</span><span class="token punctuation">,</span><span class="token property">&quot;packetSize&quot;</span><span class="token operator">:</span><span class="token number">9</span><span class="token punctuation">,</span><span class="token property">&quot;message&quot;</span><span class="token operator">:</span><span class="token string">&quot;hello 37&quot;</span><span class="token punctuation">}</span>
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br></div></div><p>Messages that contain non-printable characters will be converted to hexadecimal and look like this:</p> <div class="language-json line-numbers-mode"><pre class="language-json"><code><span class="token punctuation">{</span><span class="token property">&quot;rssi&quot;</span><span class="token operator">:</span><span class="token number">-121</span><span class="token punctuation">,</span><span class="token property">&quot;snr&quot;</span><span class="token operator">:</span><span class="token number">-11.75</span><span class="token punctuation">,</span><span class="token property">&quot;pferror&quot;</span><span class="token operator">:</span><span class="token number">-29116</span><span class="token punctuation">,</span><span class="token property">&quot;packetSize&quot;</span><span class="token operator">:</span><span class="token number">3</span><span class="token punctuation">,</span><span class="token property">&quot;hex&quot;</span><span class="token operator">:</span><span class="token string">&quot;C0FFEE&quot;</span><span class="token punctuation">}</span>
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br></div></div><p>And from a supported device (in this case, a WiPhone), looks like this:</p> <div class="language-json line-numbers-mode"><pre class="language-json"><code><span class="token punctuation">{</span><span class="token property">&quot;rssi&quot;</span><span class="token operator">:</span><span class="token number">-50</span><span class="token punctuation">,</span><span class="token property">&quot;snr&quot;</span><span class="token operator">:</span><span class="token number">9.25</span><span class="token punctuation">,</span><span class="token property">&quot;pferror&quot;</span><span class="token operator">:</span><span class="token number">20728</span><span class="token punctuation">,</span><span class="token property">&quot;packetSize&quot;</span><span class="token operator">:</span><span class="token number">30</span><span class="token punctuation">,</span><span class="token property">&quot;from&quot;</span><span class="token operator">:</span><span class="token string">&quot;123ABC&quot;</span><span class="token punctuation">,</span><span class="token property">&quot;to&quot;</span><span class="token operator">:</span><span class="token string">&quot;000000&quot;</span><span class="token punctuation">,</span><span class="token property">&quot;message&quot;</span><span class="token operator">:</span><span class="token string">&quot;Hi from WiPhone&quot;</span><span class="token punctuation">,</span><span class="token property">&quot;type&quot;</span><span class="token operator">:</span><span class="token string">&quot;WiPhone&quot;</span><span class="token punctuation">}</span>
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br></div></div><h2 id="send-data-by-mqtt-to-convert-it-on-lora-signal"><a href="#send-data-by-mqtt-to-convert-it-on-lora-signal" class="header-anchor">#</a> Send data by MQTT to convert it on LORA signal</h2> <p><code>mosquitto_pub -t home/OpenMQTTGateway/commands/MQTTtoLORA -m '{&quot;message&quot;:&quot;hello OMG1&quot;}'</code></p> <p>This command will send by LORA the message &quot;hello OMG1&quot; and use the default parameters defined in <a href="https://github.com/1technophile/OpenMQTTGateway/blob/4b8d28179b63ae3f3d454da57ec8c109c159c386/config_LORA.h#L32" target="_blank" rel="noopener noreferrer">config_LORA.h<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></p> <p><img src="/assets/img/OpenMQTTGateway_TTGO32_LORA_Receive.ce846ec8.jpg" alt=""></p> <p>If you want to test that your sending works you can use another TTGO LORA module, you can flash the receiver program from <a href="https://github.com/LilyGO/TTGO-LORA32-V2.0" target="_blank" rel="noopener noreferrer">this repository<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a> and the SSD1306 library <a href="https://github.com/ThingPulse/esp8266-oled-ssd1306" target="_blank" rel="noopener noreferrer">there<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></p> <h2 id="send-data-by-mqtt-with-advanced-lora-parameters"><a href="#send-data-by-mqtt-with-advanced-lora-parameters" class="header-anchor">#</a> Send data by MQTT with advanced LORA parameters</h2> <p>LORA sending support the following parameters that should be specified in the json message;</p> <ul><li>txpower: 2 to 20</li> <li>spreadingfactor: 6 to 12. If a spreading factor of 6 is set, implicit header mode must be used to transmit and receive * * packets.</li> <li>frequency: 433E6, 866E6, 915E6</li> <li>signalbandwidth: 7.8E3, 10.4E3, 15.6E3, 20.8E3, 31.25E3, 41.7E3, 62.5E3, 125E3, and 250E3</li> <li>codingrate: 5 to 8</li> <li>preamblelength: 6 to 65535</li> <li>syncword: byte</li> <li>enablecrc: boolean</li></ul> <p>More info on where the LORA library is born <a href="https://github.com/sandeepmistry/arduino-LoRa/blob/master/API.md#radio-parameters" target="_blank" rel="noopener noreferrer">@sandeepmistry<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></p> <p>Examples:</p> <ul><li>Plain text message: <code>mosquitto_pub -t home/OpenMQTTGateway/commands/MQTTtoLORA -m '{&quot;message&quot;:&quot;test8&quot;,&quot;txpower&quot;:17}'</code><br>
will make LORA use the a txpower of 17 when sending the message &quot;test8&quot;</li> <li>Binary message: <code>mosquitto_pub -t &quot;home/OpenMQTTGateway/commands/MQTTtoLORA&quot; -m '{&quot;hex&quot;:&quot;01C0FFEE&quot;}'</code><br>
will send binary 0x01C0FFEE</li> <li>WiPhone message: <code>mosquitto_pub -t &quot;home/OpenMQTTGateway/commands/MQTTtoLORA&quot; -m '{&quot;message&quot;:&quot;test&quot;,&quot;type&quot;:&quot;WiPhone&quot;,&quot;to&quot;:&quot;123ABC&quot;,&quot;from&quot;:&quot;FFFFFF&quot;}'</code><br>
will send &quot;test&quot; to a WiPhone with chip ID 123ABC</li></ul></div> <footer class="page-edit"><div class="edit-link"><a href="https://github.com/1technophile/OpenMQTTGateway/edit/development/docs/use/lora.md" target="_blank" rel="noopener noreferrer">Edit this page</a> <span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></div> <div class="last-updated"><span class="prefix">Last Updated:</span> <span class="time">6/10/2023, 8:01:17 PM</span></div></footer> <div class="page-nav"><p class="inner"><span class="prev">
<a href="/use/ir.html" class="prev">
IR gateway
</a></span> <span class="next"><a href="/use/gsm.html">
GSM 2G gateway
</a>
</span></p></div> </main></div><div class="global-ui"></div></div>
<script src="/assets/js/app.a8101403.js" defer></script><script src="/assets/js/2.a6330fef.js" defer></script><script src="/assets/js/26.803f9d00.js" defer></script>
</body>
</html>