<?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[Communication between LoPy and Node.JS server]]></title><description><![CDATA[<p dir="auto">I have a LoPy collecting sensor data that I need to send to a Node.JS server running in a standard PC, wirelessly. I managed to get the LoPy and the PC connected to the same Wi-Fi network, but I have no idea how to send the data between them. This is what I have:</p>
<pre><code>from network import WLAN
wlan = WLAN(mode=WLAN.STA)

nets = wlan.scan()
for net in nets:
    if net.ssid == 'network':
        print('Network found!')
        wlan.connect(net.ssid, auth=(net.sec, 'password'), timeout=5000)
        
        print('WLAN connection succeeded!')
        break
</code></pre>
]]></description><link>https://forum.pycom.io/topic/5189/communication-between-lopy-and-node-js-server</link><generator>RSS for Node</generator><lastBuildDate>Thu, 10 Sep 2026 03:25:41 GMT</lastBuildDate><atom:link href="https://forum.pycom.io/topic/5189.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 06 Sep 2019 14:02:10 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Communication between LoPy and Node.JS server on Fri, 06 Sep 2019 14:02:10 GMT]]></title><description><![CDATA[<p dir="auto">I have a LoPy collecting sensor data that I need to send to a Node.JS server running in a standard PC, wirelessly. I managed to get the LoPy and the PC connected to the same Wi-Fi network, but I have no idea how to send the data between them. This is what I have:</p>
<pre><code>from network import WLAN
wlan = WLAN(mode=WLAN.STA)

nets = wlan.scan()
for net in nets:
    if net.ssid == 'network':
        print('Network found!')
        wlan.connect(net.ssid, auth=(net.sec, 'password'), timeout=5000)
        
        print('WLAN connection succeeded!')
        break
</code></pre>
]]></description><link>https://forum.pycom.io/post/29380</link><guid isPermaLink="true">https://forum.pycom.io/post/29380</guid><dc:creator><![CDATA[miguel1996]]></dc:creator><pubDate>Fri, 06 Sep 2019 14:02:10 GMT</pubDate></item></channel></rss>