<?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[Sending sensor data from Fipy to a cloud server]]></title><description><![CDATA[<p dir="auto">Hi everyone, I need to send some data from a fipy to a database in Mongo DB, I’m planning on using the LTE module for this and i read that you need to use usocket, have you ever worked with this? Have any of you have an example that I can look up to?</p>
]]></description><link>https://forum.pycom.io/topic/6367/sending-sensor-data-from-fipy-to-a-cloud-server</link><generator>RSS for Node</generator><lastBuildDate>Fri, 17 Apr 2026 21:35:03 GMT</lastBuildDate><atom:link href="https://forum.pycom.io/topic/6367.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 18 Sep 2020 20:22:33 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Sending sensor data from Fipy to a cloud server on Fri, 18 Sep 2020 20:22:33 GMT]]></title><description><![CDATA[<p dir="auto">Hi everyone, I need to send some data from a fipy to a database in Mongo DB, I’m planning on using the LTE module for this and i read that you need to use usocket, have you ever worked with this? Have any of you have an example that I can look up to?</p>
]]></description><link>https://forum.pycom.io/post/34597</link><guid isPermaLink="true">https://forum.pycom.io/post/34597</guid><dc:creator><![CDATA[dulcegtzg]]></dc:creator><pubDate>Fri, 18 Sep 2020 20:22:33 GMT</pubDate></item><item><title><![CDATA[Reply to Sending sensor data from Fipy to a cloud server on Fri, 18 Sep 2020 23:54:01 GMT]]></title><description><![CDATA[<p dir="auto">You could try</p>
<pre><code>def http_get(url):
    print(&quot;get(&quot;, url, &quot;)&quot;)
    _, _, host, path = url.split('/', 3)
    print(&quot;host&quot;, host)
    print(&quot;path&quot;, path)
    addr = socket.getaddrinfo(host, 80)[0][-1]
    print(&quot;addr&quot;, addr)
    s = socket.socket()
    print(&quot;connect&quot;)
    s.connect(addr)
    print(&quot;send&quot;)
    s.send(bytes('GET /%s HTTP/1.0\r\nHost: %s\r\n\r\n' % (path, host), 'utf8'))
</code></pre>
<p dir="auto">Note that the LTE module doesn't always play nice, to the extent that some have bypassed it for cellular comms <a href="https://forum.pycom.io/topic/6202/method-to-take-control-of-cell-modem/22">https://forum.pycom.io/topic/6202/method-to-take-control-of-cell-modem/22</a></p>
]]></description><link>https://forum.pycom.io/post/34598</link><guid isPermaLink="true">https://forum.pycom.io/post/34598</guid><dc:creator><![CDATA[kjm]]></dc:creator><pubDate>Fri, 18 Sep 2020 23:54:01 GMT</pubDate></item></channel></rss>