{"id":44773,"date":"2025-05-12T16:23:03","date_gmt":"2025-05-12T22:23:03","guid":{"rendered":"https:\/\/www.logicbus.com.mx\/blog\/?p=44773"},"modified":"2026-02-03T11:12:55","modified_gmt":"2026-02-03T17:12:55","slug":"como-trabajar-con-lorawan-y-un-plc-esp32","status":"publish","type":"post","link":"https:\/\/www.logicbus.com.mx\/blog\/como-trabajar-con-lorawan-y-un-plc-esp32\/","title":{"rendered":"C\u00f3mo trabajar con LoRaWAN y un PLC ESP32"},"content":{"rendered":"<h2 style=\"text-align: left;\"><em><strong>Conectando tu PLC ESP32 a LoRaWAN<\/strong><\/em><\/h2>\n<p>&nbsp;<\/p>\n<h2><strong>Introducci\u00f3n<\/strong><\/h2>\n<p><span style=\"font-weight: 400;\">LoRaWAN es una tecnolog\u00eda potente para redes de baja potencia y amplia cobertura, lo que la hace ideal para aplicaciones industriales. En esta gu\u00eda, demostraremos c\u00f3mo integrar LoRaWAN con un <\/span><a href=\"https:\/\/tienda.logicbus.com.mx\/Base-ESP32_c_7951.html\"><span style=\"font-weight: 400;\">PLC ESP32<\/span><\/a><span style=\"font-weight: 400;\">, utilizando un m\u00f3dulo LoRa RN2483 y The Things Network (TTN). Al finalizar este tutorial, tendr\u00e1s tu <\/span><a href=\"https:\/\/tienda.logicbus.com.mx\/Base-ESP32_c_7951.html\"><span style=\"font-weight: 400;\">PLC ESP32<\/span><\/a><span style=\"font-weight: 400;\"> enviando datos a TTN.<\/span><\/p>\n<h2><strong>Requisitos de Hardware<\/strong><\/h2>\n<p><span style=\"font-weight: 400;\">Antes de empezar, aseg\u00farate de contar con lo siguiente:<\/span><\/p>\n<h3><\/h3>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><a href=\"https:\/\/tienda.logicbus.com.mx\/Base-ESP32_c_7951.html\"><span style=\"font-weight: 400;\">PLC ESP32<\/span><\/a><span style=\"font-weight: 400;\">: Controlador L\u00f3gico Programable basado en ESP32 de Industrial Shields.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">M\u00f3dulo RN2483 Click: Un m\u00f3dulo LoRaWAN que se conecta a tu PLC ESP32.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Conexiones<\/span><\/li>\n<\/ol>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Slot 1 o Slot 2 en el PLC ESP32 (el Slot 2 est\u00e1 junto al conector Ethernet y requiere una configuraci\u00f3n adicional de interruptores).<\/span><\/li>\n<\/ul>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Cable Micro USB: Para programar el <\/span><a href=\"https:\/\/tienda.logicbus.com.mx\/Base-ESP32_c_7951.html\"><span style=\"font-weight: 400;\">PLC ESP32<\/span><\/a><span style=\"font-weight: 400;\">.<\/span><\/li>\n<\/ol>\n<h2><strong>Configuraci\u00f3n del Software<\/strong><\/h2>\n<p><span style=\"font-weight: 400;\">Antes de sumergirte en el c\u00f3digo, aseg\u00farate de tener:<\/span><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Arduino IDE: Instalado y configurado para programar dispositivos ESP32.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Librer\u00eda RN2483 para Arduino:<\/span>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"2\"><span style=\"font-weight: 400;\">Instala la librer\u00eda desde el <\/span><a href=\"https:\/\/github.com\/jpmeijers\/RN2483-Arduino-Library\"><span style=\"font-weight: 400;\">repositorio GitHub de RN2483-Arduino Library<\/span><\/a><span style=\"font-weight: 400;\">.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"2\"><span style=\"font-weight: 400;\">Descarga la librer\u00eda, descompr\u00edmela y a\u00f1\u00e1dela a tu Arduino IDE.<\/span><\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h2><strong>Registra tu dispositivo en TTN<\/strong><\/h2>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Accede a <\/span><a href=\"https:\/\/id.thethingsnetwork.org\/\"><span style=\"font-weight: 400;\">The Things Stack<\/span><\/a><span style=\"font-weight: 400;\"> e inicia sesi\u00f3n.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Crea un nuevo dispositivo y toma nota de las siguientes claves:<\/span>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"2\"><span style=\"font-weight: 400;\">Device EUI<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"2\"><span style=\"font-weight: 400;\">Application EUI<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"2\"><span style=\"font-weight: 400;\">App Key<\/span><\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p><span style=\"font-weight: 400;\">Estas claves se utilizar\u00e1n en el c\u00f3digo Arduino.<\/span><\/p>\n<h2><strong>C\u00f3digo Arduino<\/strong><\/h2>\n<p><span style=\"font-weight: 400;\">A continuaci\u00f3n tienes el c\u00f3digo Arduino para configurar LoRaWAN en el <\/span><a href=\"https:\/\/tienda.logicbus.com.mx\/Base-ESP32_c_7951.html\"><span style=\"font-weight: 400;\">PLC ESP32<\/span><\/a><span style=\"font-weight: 400;\"> y enviar datos a TTN. Sustituye las cadenas devEui, appEui y appKey por la informaci\u00f3n espec\u00edfica de tu dispositivo que obtuviste de TTN.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">#include<\/span> <span style=\"font-weight: 400;\">&lt;rn2xx3.h&gt;<\/span><\/p>\n<h3><\/h3>\n<p><i><span style=\"font-weight: 400;\">\/\/ Constants for OTAA keys<\/span><\/i><\/p>\n<p><span style=\"font-weight: 400;\">const char*<\/span> <span style=\"font-weight: 400;\">devEui<\/span><span style=\"font-weight: 400;\"> = <\/span><span style=\"font-weight: 400;\">&#8220;0011223344556677&#8221;<\/span><span style=\"font-weight: 400;\">;\u00a0 <\/span><i><span style=\"font-weight: 400;\">\/\/ Replace with your Device EUI<\/span><\/i><\/p>\n<p><span style=\"font-weight: 400;\">const char*<\/span> <span style=\"font-weight: 400;\">appEui<\/span><span style=\"font-weight: 400;\"> = <\/span><span style=\"font-weight: 400;\">&#8220;0000000000000000&#8221;<\/span><span style=\"font-weight: 400;\">; <\/span><i><span style=\"font-weight: 400;\">\/\/ Replace with your Application EUI<\/span><\/i><\/p>\n<p><span style=\"font-weight: 400;\">const char*<\/span> <span style=\"font-weight: 400;\">appKey<\/span><span style=\"font-weight: 400;\"> = <\/span><span style=\"font-weight: 400;\">&#8220;00112233445566778899AABBCCDDEEFF&#8221;<\/span><span style=\"font-weight: 400;\">; <\/span><i><span style=\"font-weight: 400;\">\/\/ Replace with your App Key<\/span><\/i><\/p>\n<h3><\/h3>\n<p><i><span style=\"font-weight: 400;\">\/\/ Create an instance of the rn2xx3 library<\/span><\/i><\/p>\n<p><span style=\"font-weight: 400;\">rn2xx3 <\/span><span style=\"font-weight: 400;\">myLora<\/span><span style=\"font-weight: 400;\">(SerialExp2);<\/span><\/p>\n<h3><\/h3>\n<p><i><span style=\"font-weight: 400;\">\/\/ The setup routine runs once when you press reset:<\/span><\/i><\/p>\n<p><span style=\"font-weight: 400;\">void<\/span> <span style=\"font-weight: 400;\">setup<\/span><span style=\"font-weight: 400;\">() {<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0Serial.<\/span><span style=\"font-weight: 400;\">begin<\/span><span style=\"font-weight: 400;\">(115200); <\/span><i><span style=\"font-weight: 400;\">\/\/ Serial port to computer<\/span><\/i><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0SerialExp2.<\/span><span style=\"font-weight: 400;\">begin<\/span><span style=\"font-weight: 400;\">(57600); <\/span><i><span style=\"font-weight: 400;\">\/\/ Serial port to radio<\/span><\/i><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0Serial.<\/span><span style=\"font-weight: 400;\">println<\/span><span style=\"font-weight: 400;\">(<\/span><span style=\"font-weight: 400;\">&#8220;Startup&#8221;<\/span><span style=\"font-weight: 400;\">);<\/span><\/p>\n<h3><\/h3>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0<\/span><span style=\"font-weight: 400;\">initialize_radio<\/span><span style=\"font-weight: 400;\">();<\/span><\/p>\n<h3><\/h3>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0<\/span><i><span style=\"font-weight: 400;\">\/\/ Transmit a startup message<\/span><\/i><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0myLora.<\/span><span style=\"font-weight: 400;\">tx<\/span><span style=\"font-weight: 400;\">(<\/span><span style=\"font-weight: 400;\">&#8220;TTN Mapper on TTN ESP32 node&#8221;<\/span><span style=\"font-weight: 400;\">);<\/span><\/p>\n<h3><\/h3>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0<\/span><span style=\"font-weight: 400;\">delay<\/span><span style=\"font-weight: 400;\">(2000);<\/span><\/p>\n<p><span style=\"font-weight: 400;\">}<\/span><\/p>\n<h3><\/h3>\n<p><span style=\"font-weight: 400;\">void<\/span> <span style=\"font-weight: 400;\">initialize_radio<\/span><span style=\"font-weight: 400;\">() {<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0<\/span><i><span style=\"font-weight: 400;\">\/\/ Reset rn2483<\/span><\/i><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0<\/span><span style=\"font-weight: 400;\">pinMode<\/span><span style=\"font-weight: 400;\">(EXP2_RST, OUTPUT);<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0<\/span><span style=\"font-weight: 400;\">digitalWrite<\/span><span style=\"font-weight: 400;\">(EXP2_RST, LOW);<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0<\/span><span style=\"font-weight: 400;\">delay<\/span><span style=\"font-weight: 400;\">(1000);<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0<\/span><span style=\"font-weight: 400;\">digitalWrite<\/span><span style=\"font-weight: 400;\">(EXP2_RST, HIGH);<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0<\/span><span style=\"font-weight: 400;\">delay<\/span><span style=\"font-weight: 400;\">(1000); <\/span><i><span style=\"font-weight: 400;\">\/\/ Wait for the RN2xx3&#8217;s startup message<\/span><\/i><\/p>\n<h3><\/h3>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0SerialExp2.<\/span><span style=\"font-weight: 400;\">flush<\/span><span style=\"font-weight: 400;\">();<\/span><\/p>\n<h3><\/h3>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0Serial.<\/span><span style=\"font-weight: 400;\">println<\/span><span style=\"font-weight: 400;\">(<\/span><span style=\"font-weight: 400;\">&#8220;RN2xx3 firmware version:&#8221;<\/span><span style=\"font-weight: 400;\">);<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0Serial.<\/span><span style=\"font-weight: 400;\">println<\/span><span style=\"font-weight: 400;\">(myLora.<\/span><span style=\"font-weight: 400;\">sysver<\/span><span style=\"font-weight: 400;\">());<\/span><\/p>\n<h3><\/h3>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0<\/span><i><span style=\"font-weight: 400;\">\/\/ Configure your keys and join the network<\/span><\/i><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0Serial.<\/span><span style=\"font-weight: 400;\">println<\/span><span style=\"font-weight: 400;\">(<\/span><span style=\"font-weight: 400;\">&#8220;Trying to join TTN&#8221;<\/span><span style=\"font-weight: 400;\">);<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0<\/span><span style=\"font-weight: 400;\">bool<\/span> <span style=\"font-weight: 400;\">join_result<\/span><span style=\"font-weight: 400;\"> = <\/span><span style=\"font-weight: 400;\">false<\/span><span style=\"font-weight: 400;\">;<\/span><\/p>\n<h3><\/h3>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0<\/span><span style=\"font-weight: 400;\">join_result<\/span><span style=\"font-weight: 400;\"> = myLora.<\/span><span style=\"font-weight: 400;\">initOTAA<\/span><span style=\"font-weight: 400;\">(appEui, appKey, devEui);<\/span><\/p>\n<h3><\/h3>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0<\/span><span style=\"font-weight: 400;\">while<\/span><span style=\"font-weight: 400;\"> (!<\/span><span style=\"font-weight: 400;\">join_result<\/span><span style=\"font-weight: 400;\">) {<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0Serial.<\/span><span style=\"font-weight: 400;\">println<\/span><span style=\"font-weight: 400;\">(<\/span><span style=\"font-weight: 400;\">&#8220;Unable to join. Are your keys correct, and do you have TTN coverage?&#8221;<\/span><span style=\"font-weight: 400;\">);<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"font-weight: 400;\">delay<\/span><span style=\"font-weight: 400;\">(60000); <\/span><i><span style=\"font-weight: 400;\">\/\/ Delay a minute before retry<\/span><\/i><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"font-weight: 400;\">join_result<\/span><span style=\"font-weight: 400;\"> = myLora.<\/span><span style=\"font-weight: 400;\">init<\/span><span style=\"font-weight: 400;\">();<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0}<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0Serial.<\/span><span style=\"font-weight: 400;\">println<\/span><span style=\"font-weight: 400;\">(<\/span><span style=\"font-weight: 400;\">&#8220;Successfully joined TTN&#8221;<\/span><span style=\"font-weight: 400;\">);<\/span><\/p>\n<p><span style=\"font-weight: 400;\">}<\/span><\/p>\n<h3><\/h3>\n<p><i><span style=\"font-weight: 400;\">\/\/ The loop routine runs over and over again forever:<\/span><\/i><\/p>\n<p><span style=\"font-weight: 400;\">void<\/span> <span style=\"font-weight: 400;\">loop<\/span><span style=\"font-weight: 400;\">() {<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0Serial.<\/span><span style=\"font-weight: 400;\">println<\/span><span style=\"font-weight: 400;\">(<\/span><span style=\"font-weight: 400;\">&#8220;TXing&#8221;<\/span><span style=\"font-weight: 400;\">);<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0myLora.<\/span><span style=\"font-weight: 400;\">tx<\/span><span style=\"font-weight: 400;\">(<\/span><span style=\"font-weight: 400;\">&#8220;!&#8221;<\/span><span style=\"font-weight: 400;\">); <\/span><i><span style=\"font-weight: 400;\">\/\/ One byte, blocking function<\/span><\/i><\/p>\n<h3><\/h3>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0<\/span><span style=\"font-weight: 400;\">delay<\/span><span style=\"font-weight: 400;\">(200);<\/span><\/p>\n<p><span style=\"font-weight: 400;\">}<\/span><\/p>\n<h3><\/h3>\n<h2><strong>Decodificador para TTN<\/strong><\/h2>\n<p><span style=\"font-weight: 400;\">Para visualizar los datos, a\u00f1ade el siguiente decodificador en &#8220;Payload Formatters&#8221; para los mensajes uplink en tu consola TTN:<\/span><\/p>\n<h3><\/h3>\n<p><span style=\"font-weight: 400;\">function<\/span> <span style=\"font-weight: 400;\">decodeUplink<\/span><span style=\"font-weight: 400;\">(<\/span><span style=\"font-weight: 400;\">input<\/span><span style=\"font-weight: 400;\">) {<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0<\/span><span style=\"font-weight: 400;\">return<\/span><span style=\"font-weight: 400;\"> {<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"font-weight: 400;\">data<\/span><span style=\"font-weight: 400;\">: {<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"font-weight: 400;\">bytes<\/span><span style=\"font-weight: 400;\">: <\/span><span style=\"font-weight: 400;\">input.bytes<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0},<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"font-weight: 400;\">warnings<\/span><span style=\"font-weight: 400;\">: [],<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"font-weight: 400;\">errors<\/span><span style=\"font-weight: 400;\">: []<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0};<\/span><\/p>\n<p><span style=\"font-weight: 400;\">}<\/span><\/p>\n<h3><\/h3>\n<p><span style=\"font-weight: 400;\">Esto mostrar\u00e1 los bytes en bruto enviados desde el PLC ESP32 en la consola de TTN.<\/span><\/p>\n<h2><strong>Resumen de pasos clave<\/strong><\/h2>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Conecta el m\u00f3dulo RN2483 click al PLC ESP32 (se recomienda el Slot 2 por su flexibilidad).<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Configura el Arduino IDE con la librer\u00eda RN2483.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Registra tu dispositivo en TTN y copia las claves en el sketch de Arduino.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Carga el c\u00f3digo en el PLC ESP32.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Supervisa la consola de TTN para ver los datos entrantes.<\/span><\/li>\n<\/ol>\n<h2><strong>Consejos de Soluci\u00f3n de Problemas<\/strong><\/h2>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>Sin respuesta de Join<\/b><span style=\"font-weight: 400;\">: Aseg\u00farate de que tienes cobertura LoRaWAN y que las claves est\u00e1n correctamente configuradas en TTN.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>Datos no visibles en la consola de TTN<\/b><span style=\"font-weight: 400;\">: Verifica la funci\u00f3n de descodificaci\u00f3n (decoder) y el formato de la carga \u00fatil en tu c\u00f3digo.<\/span><\/li>\n<\/ul>\n<h2><strong>Conclusi\u00f3n<\/strong><\/h2>\n<p><span style=\"font-weight: 400;\">Con esta configuraci\u00f3n, tu PLC ESP32 est\u00e1 ahora conectado a una red LoRaWAN, transmitiendo datos a TTN. Esta es una base s\u00f3lida para aplicaciones industriales IoT, como la monitorizaci\u00f3n de sensores, el seguimiento de activos o incluso soluciones de ciudades inteligentes.<\/span><\/p>\n<p>&nbsp;<\/p>\n<h3 style=\"text-align: center;\">Cont\u00e1ctanos<\/h3>\n<h3 style=\"text-align: center;\"><a href=\"https:\/\/tienda.logicbus.com.mx\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" class=\"card-review alignnone\" title=\"Tienda en linea\" src=\"https:\/\/www.logicbus.com.mx\/blog\/wp-content\/uploads\/2022\/11\/tienda.png \" alt=\"\" width=\"102\" height=\"102\" \/><\/a><a href=\"https:\/\/www.logicbus.com.mx\/\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" class=\"card-review alignnone\" title=\"Logicbus\" src=\"https:\/\/www.logicbus.com.mx\/blog\/wp-content\/uploads\/2022\/11\/www.png \" alt=\"\" width=\"104\" height=\"104\" \/><\/a><a href=\"https:\/\/www.logicbus.com.mx\/soporte\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" class=\"card-review alignnone\" title=\"Soporte\" src=\"https:\/\/www.logicbus.com.mx\/blog\/wp-content\/uploads\/2022\/11\/soporte.png \" alt=\"\" width=\"106\" height=\"106\" \/><\/a><a href=\"https:\/\/api.whatsapp.com\/send?phone=525554316718&amp;text=Hola%20Logicbus,me%20gustar%C3%ADa%20solicitar%20informaci%C3%B3n\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" class=\"card-review alignnone\" title=\"Whatsapp\" src=\"https:\/\/www.logicbus.com.mx\/blog\/wp-content\/uploads\/2022\/11\/wa.png \" alt=\"\" width=\"103\" height=\"103\" \/><\/a><a href=\"https:\/\/www.logicbus.com.mx\/contacto\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" class=\"card-review alignnone\" title=\"Contacto\" src=\"https:\/\/www.logicbus.com.mx\/blog\/wp-content\/uploads\/2022\/11\/contacto.png \" alt=\"\" width=\"115\" height=\"115\" \/><\/a><a href=\"https:\/\/www.logicbus.com.mx\/soluciones-en-la-industria-logicbus.php\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" class=\"card-review alignnone\" title=\"Soluciones\" src=\"https:\/\/www.logicbus.com.mx\/blog\/wp-content\/uploads\/2022\/11\/soluciones.png \" alt=\"\" width=\"106\" height=\"106\" \/><\/a><\/h3>\n<p style=\"text-align: center;\"><a href=\"mailto:ventas@logicbus.com\">ventas@logicbus.com<\/a>\u00a0 \u00a0 \u00a0 |\u00a0 \u00a0 \u00a0\u00a0<a href=\"mailto:soporte@logicbus.com\">soporte@logicbus.com<\/a>\u00a0 \u00a0 \u00a0 |\u00a0 \u00a0 \u00a0\u00a0<a href=\"https:\/\/api.whatsapp.com\/send?phone=525554316718&amp;text=Hola%20Logicbus,me%20gustar%C3%ADa%20solicitar%20informaci%C3%B3n\">55-5431-67-18<\/a>\u00a0 \u00a0 |\u00a0 \u00a0 \u00a0\u00a0 <a href=\"https:\/\/tawk.to\/chat\/5ca674ff1de11b6e3b06f73d\/default\">Iniciar conversaci\u00f3n<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Conectando tu PLC ESP32 a LoRaWAN &nbsp; Introducci\u00f3n LoRaWAN es una tecnolog\u00eda potente para redes de baja potencia y amplia cobertura, lo que la hace ideal para aplicaciones industriales. En esta gu\u00eda, demostraremos c\u00f3mo integrar LoRaWAN con un PLC ESP32, utilizando un m\u00f3dulo LoRa RN2483 y The Things Network (TTN). Al finalizar este tutorial, tendr\u00e1s [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":44774,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5767],"tags":[5986,16],"class_list":["post-44773","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-plcs-y-convertidores-de-protocolo","tag-industrial-shields","tag-plcs"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>C\u00f3mo trabajar con LoRaWAN y un PLC ESP32<\/title>\n<meta name=\"description\" content=\"LoRaWAN es una tecnolog\u00eda potente para redes de baja potencia y amplia cobertura, lo que la hace ideal para aplicaciones industriales.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.logicbus.com.mx\/blog\/como-trabajar-con-lorawan-y-un-plc-esp32\/\" \/>\n<meta property=\"og:locale\" content=\"es_MX\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"C\u00f3mo trabajar con LoRaWAN y un PLC ESP32\" \/>\n<meta property=\"og:description\" content=\"LoRaWAN es una tecnolog\u00eda potente para redes de baja potencia y amplia cobertura, lo que la hace ideal para aplicaciones industriales.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.logicbus.com.mx\/blog\/como-trabajar-con-lorawan-y-un-plc-esp32\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog Logicbus\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/logicbus\/\" \/>\n<meta property=\"article:published_time\" content=\"2025-05-12T22:23:03+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-02-03T17:12:55+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.logicbus.com.mx\/blog\/wp-content\/uploads\/2025\/05\/LoRaWAN.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1920\" \/>\n\t<meta property=\"og:image:height\" content=\"960\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Logicbus\" \/>\n<meta name=\"twitter:label1\" content=\"Escrito por\" \/>\n\t<meta name=\"twitter:data1\" content=\"Logicbus\" \/>\n\t<meta name=\"twitter:label2\" content=\"Tiempo de lectura\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutos\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"C\u00f3mo trabajar con LoRaWAN y un PLC ESP32","description":"LoRaWAN es una tecnolog\u00eda potente para redes de baja potencia y amplia cobertura, lo que la hace ideal para aplicaciones industriales.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.logicbus.com.mx\/blog\/como-trabajar-con-lorawan-y-un-plc-esp32\/","og_locale":"es_MX","og_type":"article","og_title":"C\u00f3mo trabajar con LoRaWAN y un PLC ESP32","og_description":"LoRaWAN es una tecnolog\u00eda potente para redes de baja potencia y amplia cobertura, lo que la hace ideal para aplicaciones industriales.","og_url":"https:\/\/www.logicbus.com.mx\/blog\/como-trabajar-con-lorawan-y-un-plc-esp32\/","og_site_name":"Blog Logicbus","article_publisher":"https:\/\/www.facebook.com\/logicbus\/","article_published_time":"2025-05-12T22:23:03+00:00","article_modified_time":"2026-02-03T17:12:55+00:00","og_image":[{"width":1920,"height":960,"url":"https:\/\/www.logicbus.com.mx\/blog\/wp-content\/uploads\/2025\/05\/LoRaWAN.png","type":"image\/png"}],"author":"Logicbus","twitter_misc":{"Escrito por":"Logicbus","Tiempo de lectura":"5 minutos"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.logicbus.com.mx\/blog\/como-trabajar-con-lorawan-y-un-plc-esp32\/#article","isPartOf":{"@id":"https:\/\/www.logicbus.com.mx\/blog\/como-trabajar-con-lorawan-y-un-plc-esp32\/"},"author":{"name":"Logicbus","@id":"https:\/\/www.logicbus.com.mx\/blog\/#\/schema\/person\/42451dd47a6fc9e56bb0386ab20bffd5"},"headline":"C\u00f3mo trabajar con LoRaWAN y un PLC ESP32","datePublished":"2025-05-12T22:23:03+00:00","dateModified":"2026-02-03T17:12:55+00:00","mainEntityOfPage":{"@id":"https:\/\/www.logicbus.com.mx\/blog\/como-trabajar-con-lorawan-y-un-plc-esp32\/"},"wordCount":716,"publisher":{"@id":"https:\/\/www.logicbus.com.mx\/blog\/#organization"},"image":{"@id":"https:\/\/www.logicbus.com.mx\/blog\/como-trabajar-con-lorawan-y-un-plc-esp32\/#primaryimage"},"thumbnailUrl":"https:\/\/www.logicbus.com.mx\/blog\/wp-content\/uploads\/2025\/05\/LoRaWAN.png","keywords":["Industrial Shields","PLCs"],"articleSection":["PLCs y Convertidores de protocolo"],"inLanguage":"es"},{"@type":"WebPage","@id":"https:\/\/www.logicbus.com.mx\/blog\/como-trabajar-con-lorawan-y-un-plc-esp32\/","url":"https:\/\/www.logicbus.com.mx\/blog\/como-trabajar-con-lorawan-y-un-plc-esp32\/","name":"C\u00f3mo trabajar con LoRaWAN y un PLC ESP32","isPartOf":{"@id":"https:\/\/www.logicbus.com.mx\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.logicbus.com.mx\/blog\/como-trabajar-con-lorawan-y-un-plc-esp32\/#primaryimage"},"image":{"@id":"https:\/\/www.logicbus.com.mx\/blog\/como-trabajar-con-lorawan-y-un-plc-esp32\/#primaryimage"},"thumbnailUrl":"https:\/\/www.logicbus.com.mx\/blog\/wp-content\/uploads\/2025\/05\/LoRaWAN.png","datePublished":"2025-05-12T22:23:03+00:00","dateModified":"2026-02-03T17:12:55+00:00","description":"LoRaWAN es una tecnolog\u00eda potente para redes de baja potencia y amplia cobertura, lo que la hace ideal para aplicaciones industriales.","breadcrumb":{"@id":"https:\/\/www.logicbus.com.mx\/blog\/como-trabajar-con-lorawan-y-un-plc-esp32\/#breadcrumb"},"inLanguage":"es","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.logicbus.com.mx\/blog\/como-trabajar-con-lorawan-y-un-plc-esp32\/"]}]},{"@type":"ImageObject","inLanguage":"es","@id":"https:\/\/www.logicbus.com.mx\/blog\/como-trabajar-con-lorawan-y-un-plc-esp32\/#primaryimage","url":"https:\/\/www.logicbus.com.mx\/blog\/wp-content\/uploads\/2025\/05\/LoRaWAN.png","contentUrl":"https:\/\/www.logicbus.com.mx\/blog\/wp-content\/uploads\/2025\/05\/LoRaWAN.png","width":1920,"height":960},{"@type":"BreadcrumbList","@id":"https:\/\/www.logicbus.com.mx\/blog\/como-trabajar-con-lorawan-y-un-plc-esp32\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Inicio","item":"https:\/\/www.logicbus.com.mx\/blog\/"},{"@type":"ListItem","position":2,"name":"C\u00f3mo trabajar con LoRaWAN y un PLC ESP32"}]},{"@type":"WebSite","@id":"https:\/\/www.logicbus.com.mx\/blog\/#website","url":"https:\/\/www.logicbus.com.mx\/blog\/","name":"Blog Logicbus","description":"Logicbus Blog ofrece informaci\u00f3n detallada sobre el control de procesos, sus tipos, elementos e importancia.","publisher":{"@id":"https:\/\/www.logicbus.com.mx\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.logicbus.com.mx\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"es"},{"@type":"Organization","@id":"https:\/\/www.logicbus.com.mx\/blog\/#organization","name":"Logicbus Blog","url":"https:\/\/www.logicbus.com.mx\/blog\/","logo":{"@type":"ImageObject","inLanguage":"es","@id":"https:\/\/www.logicbus.com.mx\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.logicbus.com.mx\/blog\/wp-content\/uploads\/2021\/03\/logo-logicbus-blog.png","contentUrl":"https:\/\/www.logicbus.com.mx\/blog\/wp-content\/uploads\/2021\/03\/logo-logicbus-blog.png","width":1761,"height":546,"caption":"Logicbus Blog"},"image":{"@id":"https:\/\/www.logicbus.com.mx\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/logicbus\/","https:\/\/x.com\/Logicbus"]},{"@type":"Person","@id":"https:\/\/www.logicbus.com.mx\/blog\/#\/schema\/person\/42451dd47a6fc9e56bb0386ab20bffd5","name":"Logicbus","image":{"@type":"ImageObject","inLanguage":"es","@id":"https:\/\/www.logicbus.com.mx\/blog\/wp-content\/uploads\/2021\/03\/JosueCetina-96x96.png","url":"https:\/\/www.logicbus.com.mx\/blog\/wp-content\/uploads\/2021\/03\/JosueCetina-96x96.png","contentUrl":"https:\/\/www.logicbus.com.mx\/blog\/wp-content\/uploads\/2021\/03\/JosueCetina-96x96.png","caption":"Logicbus"},"sameAs":["https:\/\/www.logicbus.com.mx\/blog","it@logicbus.com"],"url":"https:\/\/www.logicbus.com.mx\/blog\/author\/itlogicbus-com\/"}]}},"_links":{"self":[{"href":"https:\/\/www.logicbus.com.mx\/blog\/wp-json\/wp\/v2\/posts\/44773","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.logicbus.com.mx\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.logicbus.com.mx\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.logicbus.com.mx\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.logicbus.com.mx\/blog\/wp-json\/wp\/v2\/comments?post=44773"}],"version-history":[{"count":0,"href":"https:\/\/www.logicbus.com.mx\/blog\/wp-json\/wp\/v2\/posts\/44773\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.logicbus.com.mx\/blog\/wp-json\/wp\/v2\/media\/44774"}],"wp:attachment":[{"href":"https:\/\/www.logicbus.com.mx\/blog\/wp-json\/wp\/v2\/media?parent=44773"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.logicbus.com.mx\/blog\/wp-json\/wp\/v2\/categories?post=44773"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.logicbus.com.mx\/blog\/wp-json\/wp\/v2\/tags?post=44773"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}