<?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[type object &#x27;Bluetooth&#x27; has no attribute &#x27;BLE&#x27;]]></title><description><![CDATA[<p dir="auto">Hello,<br />
I'm trying to set up a bluetooth object exactly as described in the documentation.<br />
I type :<br />
from network import Bluetooth<br />
bluetooth = Bluetooth()<br />
bluetooth.init(id=0, mode=Bluetooth.BLE, antenna=None)</p>
<p dir="auto">And this is what I get :<br />
Traceback (most recent call last):<br />
File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt;<br />
AttributeError: type object 'Bluetooth' has no attribute 'BLE'</p>
<p dir="auto">I updated the firmware, I'm using a Lopy with a Pytrack as interface boar<br />
I don't understand what is happening. Anybody with an idea or with the same problem ?</p>
<p dir="auto">Sincerely yours,<br />
Lucas</p>
]]></description><link>https://forum.pycom.io/topic/2955/type-object-bluetooth-has-no-attribute-ble</link><generator>RSS for Node</generator><lastBuildDate>Wed, 22 Jul 2026 13:23:47 GMT</lastBuildDate><atom:link href="https://forum.pycom.io/topic/2955.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 02 Apr 2018 10:34:41 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to type object &#x27;Bluetooth&#x27; has no attribute &#x27;BLE&#x27; on Mon, 02 Apr 2018 10:34:41 GMT]]></title><description><![CDATA[<p dir="auto">Hello,<br />
I'm trying to set up a bluetooth object exactly as described in the documentation.<br />
I type :<br />
from network import Bluetooth<br />
bluetooth = Bluetooth()<br />
bluetooth.init(id=0, mode=Bluetooth.BLE, antenna=None)</p>
<p dir="auto">And this is what I get :<br />
Traceback (most recent call last):<br />
File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt;<br />
AttributeError: type object 'Bluetooth' has no attribute 'BLE'</p>
<p dir="auto">I updated the firmware, I'm using a Lopy with a Pytrack as interface boar<br />
I don't understand what is happening. Anybody with an idea or with the same problem ?</p>
<p dir="auto">Sincerely yours,<br />
Lucas</p>
]]></description><link>https://forum.pycom.io/post/17947</link><guid isPermaLink="true">https://forum.pycom.io/post/17947</guid><dc:creator><![CDATA[luc]]></dc:creator><pubDate>Mon, 02 Apr 2018 10:34:41 GMT</pubDate></item><item><title><![CDATA[Reply to type object &#x27;Bluetooth&#x27; has no attribute &#x27;BLE&#x27; on Mon, 02 Apr 2018 18:48:16 GMT]]></title><description><![CDATA[<p dir="auto">Hi <a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/2568">@luc</a></p>
<p dir="auto">That's actually an error in the documentation, thank you for finding it.</p>
<p dir="auto">You don't need to do <code>bluetooth.init(id=0, mode=Bluetooth.BLE, antenna=None)</code>, just doing <code>bluetooth = Bluetooth()</code> is sufficient (and also calls init)</p>
]]></description><link>https://forum.pycom.io/post/17956</link><guid isPermaLink="true">https://forum.pycom.io/post/17956</guid><dc:creator><![CDATA[jmarcelino]]></dc:creator><pubDate>Mon, 02 Apr 2018 18:48:16 GMT</pubDate></item><item><title><![CDATA[Reply to type object &#x27;Bluetooth&#x27; has no attribute &#x27;BLE&#x27; on Mon, 02 Apr 2018 21:19:06 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/212">@jmarcelino</a><br />
Thanks for the quick answer ! :)</p>
<p dir="auto">I have another question concerning the property &quot;antenna&quot; (Bluetooth.EXT_ANT or Bluetooth.INT_ANT).</p>
<p dir="auto">When I write bluetooth=Bluetooth(antenna=Bluetooth.Ext_ANT), I have no error and my script is running normally. But I don't see any concrete improvement in the RSSI of the beacons signals I'm scanning, as if this 'antenna' property had no effect at all.</p>
<p dir="auto">Can you confirm this 'antenna' option is really doing something or it is an option that is useless for a Lopy ?<br />
Thanks a lot,<br />
sincerely yours,<br />
Lucas</p>
]]></description><link>https://forum.pycom.io/post/17957</link><guid isPermaLink="true">https://forum.pycom.io/post/17957</guid><dc:creator><![CDATA[luc]]></dc:creator><pubDate>Mon, 02 Apr 2018 21:19:06 GMT</pubDate></item><item><title><![CDATA[Reply to type object &#x27;Bluetooth&#x27; has no attribute &#x27;BLE&#x27; on Wed, 04 Apr 2018 08:11:17 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/2568">@luc</a><br />
This should switch between the on-board 2.4ghz antenna and the U.FL connector near said antenna. There was an issue a few firmware versions ago where this wasnt working as expected. What firmware are you running?</p>
]]></description><link>https://forum.pycom.io/post/18012</link><guid isPermaLink="true">https://forum.pycom.io/post/18012</guid><dc:creator><![CDATA[seb]]></dc:creator><pubDate>Wed, 04 Apr 2018 08:11:17 GMT</pubDate></item><item><title><![CDATA[Reply to type object &#x27;Bluetooth&#x27; has no attribute &#x27;BLE&#x27; on Wed, 04 Apr 2018 21:36:53 GMT]]></title><description><![CDATA[<p dir="auto">Hi <a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/1881">@seb</a> ,<br />
Thanks for your answer ! I'm using the latest firmware and an external PCB antenna. My problem is that I don't see absolutely no difference in signal RSSI and range of detection with and without PCB antenna.</p>
<p dir="auto">Now if I have the confirmation from Pycom that this BLE property is active and running smoothly in the latest firmware, I will change my antenna for my next test :). I will post the results of my test here for information.</p>
<p dir="auto">Cheers,</p>
<p dir="auto">Lucas</p>
]]></description><link>https://forum.pycom.io/post/18039</link><guid isPermaLink="true">https://forum.pycom.io/post/18039</guid><dc:creator><![CDATA[luc]]></dc:creator><pubDate>Wed, 04 Apr 2018 21:36:53 GMT</pubDate></item><item><title><![CDATA[Reply to type object &#x27;Bluetooth&#x27; has no attribute &#x27;BLE&#x27; on Thu, 05 Apr 2018 03:41:49 GMT]]></title><description><![CDATA[<p dir="auto">Hi <a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/1881">@seb</a> ,<br />
Ok, I went through some testing, using a hi-gain 2,4 GHz external antenna and there is absolutely no difference in the RSSI of the BLE received signal. I even &quot;hot&quot; unplugged the antenna with absolutely no change in RSSI and no complain from the Lopy board (I would not do this with a Lora antenna :) ).</p>
<p dir="auto">Are you sure this function (Bluetooth.EXT_ANT) is really implemented for the Lopy using the latest up to date firmware ?<br />
I bought this Lopy about 1 year ago (if this can be of any help).</p>
<p dir="auto">Cheers and thanks,<br />
Lucas</p>
]]></description><link>https://forum.pycom.io/post/18042</link><guid isPermaLink="true">https://forum.pycom.io/post/18042</guid><dc:creator><![CDATA[luc]]></dc:creator><pubDate>Thu, 05 Apr 2018 03:41:49 GMT</pubDate></item><item><title><![CDATA[Reply to type object &#x27;Bluetooth&#x27; has no attribute &#x27;BLE&#x27; on Tue, 27 Nov 2018 17:17:43 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/212">@jmarcelino</a> What is <code>bluetooth.init(id=0, mode=Bluetooth.BLE, antenna=None)</code> used for then?</p>
<p dir="auto">I also noticed when I was trying to run it, that <code>Bluetooth.BLE</code> as the mode did not work at all.</p>
]]></description><link>https://forum.pycom.io/post/23789</link><guid isPermaLink="true">https://forum.pycom.io/post/23789</guid><dc:creator><![CDATA[mattliddle]]></dc:creator><pubDate>Tue, 27 Nov 2018 17:17:43 GMT</pubDate></item></channel></rss>