<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Blue Lorawan Module]]></title><description><![CDATA[<p dir="auto">Hi</p>
<p dir="auto">Is there a example to connect a M5stack to the TTN network?</p>
<p dir="auto"><a href="https://m5stack.github.io/m5-docs/#/en/product_documents/modules/module_lorawan" target="_blank" rel="noopener noreferrer nofollow ugc">https://m5stack.github.io/m5-docs/#/en/product_documents/modules/module_lorawan</a></p>
<p dir="auto">Thanks.</p>
]]></description><link>https://community.m5stack.com/topic/443/blue-lorawan-module</link><generator>RSS for Node</generator><lastBuildDate>Tue, 28 Apr 2026 17:47:06 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/443.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 18 Dec 2018 19:25:08 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Blue Lorawan Module on Mon, 07 Jan 2019 21:47:19 GMT]]></title><description><![CDATA[<p dir="auto">Hi</p>
<p dir="auto">I managed to get connected with the following.</p>
<p dir="auto">Thanks</p>
<p dir="auto">#include &lt;M5Stack.h&gt;</p>
<p dir="auto">HardwareSerial Serial2(2);</p>
<p dir="auto">int period = 158000;<br />
unsigned long time_now = 0;</p>
<p dir="auto">String cmd_DEF = "AT+FDEFAULT";<br />
String cmd_OTTA_mode = "AT+MODE=LWOTAA";<br />
String cmd_DevEui = "AT+ID=DevEui";<br />
String cmd_JOIN = "AT+JOIN=FORCE";<br />
String cmd_send_data = "AT+MSG="Data to send"";</p>
<p dir="auto">void setup() {</p>
<p dir="auto">M5.begin();<br />
Wire.begin();<br />
// Lcd display<br />
M5.Lcd.setBrightness(100);<br />
M5.Lcd.fillScreen(BLACK);<br />
M5.Lcd.setCursor(10, 10);<br />
M5.Lcd.setTextColor(WHITE);<br />
M5.Lcd.setTextSize(1);<br />
M5.Lcd.printf("LoraWAN Network");<br />
delay(300);<br />
M5.Lcd.fillScreen(BLACK);<br />
delay(150);<br />
M5.Lcd.setCursor(0, 10);<br />
M5.Lcd.fillScreen(BLACK);<br />
for(int i=0; i&lt;200; i++) {<br />
M5.Lcd.setBrightness(i);<br />
delay(2);<br />
}</p>
<p dir="auto">Serial.begin(115200);</p>
<p dir="auto">Serial2.begin(9600, SERIAL_8N1, 16, 17);<br />
Serial2.flush();<br />
/* LoRaWAN Init */<br />
M5.Lcd.println("Setting up the LoraWAN Connetion");<br />
Serial2.println(cmd_DEF);<br />
delay(2000);<br />
Serial2.println(cmd_OTTA_mode);<br />
delay(1000);<br />
Serial2.println(cmd_DevEui);<br />
delay(1000);<br />
Serial2.println(cmd_OTTA_mode);<br />
delay(3000);<br />
M5.Lcd.println("Joining Network.");<br />
Serial2.println(cmd_JOIN);<br />
delay(3000);<br />
M5.Lcd.println("Message will be send in 155000ms, when next Band is availible");<br />
}</p>
<p dir="auto">void loop() {<br />
if(millis() &gt; time_now + period){<br />
time_now = millis();<br />
M5.Lcd.println("Sending Data.");<br />
Serial2.println(cmd_send_data);<br />
}<br />
if(Serial2.available()) {<br />
int ch = Serial2.read();<br />
Serial.write(ch);<br />
}<br />
}</p>
]]></description><link>https://community.m5stack.com/post/2386</link><guid isPermaLink="true">https://community.m5stack.com/post/2386</guid><dc:creator><![CDATA[qlion]]></dc:creator><pubDate>Mon, 07 Jan 2019 21:47:19 GMT</pubDate></item><item><title><![CDATA[Reply to Blue Lorawan Module on Wed, 02 Jan 2019 07:22:31 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/qlion" aria-label="Profile: qlion">@<bdi>qlion</bdi></a><br />
Sorry, we do not have example about TTN</p>
]]></description><link>https://community.m5stack.com/post/2302</link><guid isPermaLink="true">https://community.m5stack.com/post/2302</guid><dc:creator><![CDATA[m5-docs]]></dc:creator><pubDate>Wed, 02 Jan 2019 07:22:31 GMT</pubDate></item></channel></rss>