<?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[Bluetooth GATTSCharacteristic set permissions]]></title><description><![CDATA[<p dir="auto">Hello everyone,</p>
<p dir="auto">I'm currently trying to setup a characteristic which only allows reading, but not writing.<br />
In the docs <a href="https://docs.pycom.io/chapter/firmwareapi/pycom/network/bluetooth/gattsservice.html" target="_blank" rel="noopener noreferrer nofollow">https://docs.pycom.io/chapter/firmwareapi/pycom/network/bluetooth/gattsservice.html</a> it's described that this was possible, but it's sadly not stated which are the values and how I can put them.</p>
<p dir="auto">Does someone know more about this and can help me out?</p>
<p dir="auto">Thanks already!</p>
]]></description><link>https://forum.pycom.io/topic/2953/bluetooth-gattscharacteristic-set-permissions</link><generator>RSS for Node</generator><lastBuildDate>Wed, 11 Mar 2026 09:36:09 GMT</lastBuildDate><atom:link href="https://forum.pycom.io/topic/2953.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 31 Mar 2018 21:04:40 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Bluetooth GATTSCharacteristic set permissions on Sat, 31 Mar 2018 21:04:40 GMT]]></title><description><![CDATA[<p dir="auto">Hello everyone,</p>
<p dir="auto">I'm currently trying to setup a characteristic which only allows reading, but not writing.<br />
In the docs <a href="https://docs.pycom.io/chapter/firmwareapi/pycom/network/bluetooth/gattsservice.html" target="_blank" rel="noopener noreferrer nofollow">https://docs.pycom.io/chapter/firmwareapi/pycom/network/bluetooth/gattsservice.html</a> it's described that this was possible, but it's sadly not stated which are the values and how I can put them.</p>
<p dir="auto">Does someone know more about this and can help me out?</p>
<p dir="auto">Thanks already!</p>
]]></description><link>https://forum.pycom.io/post/17916</link><guid isPermaLink="true">https://forum.pycom.io/post/17916</guid><dc:creator><![CDATA[binux]]></dc:creator><pubDate>Sat, 31 Mar 2018 21:04:40 GMT</pubDate></item><item><title><![CDATA[Reply to Bluetooth GATTSCharacteristic set permissions on Sun, 01 Apr 2018 07:48:51 GMT]]></title><description><![CDATA[<p dir="auto">Got the issue sorted out myself.</p>
<p dir="auto">The values are documented in the esp-idf: <a href="https://github.com/espressif/esp-idf/blob/master/components/bt/bluedroid/api/include/esp_gatt_defs.h#L267" target="_blank" rel="noopener noreferrer nofollow">https://github.com/espressif/esp-idf/blob/master/components/bt/bluedroid/api/include/esp_gatt_defs.h#L267</a></p>
<p dir="auto">just set the values corresponding to your needs. Be sure to set both permissions and properties. Example:</p>
<p dir="auto">The below characteristic supports only READ and NOTIFY:<br />
<code>service.characteristic(uuid=0x2001, permissions=(1&lt;&lt;0), properties=(1 &lt;&lt; 1) | (1 &lt;&lt; 4), value=0)</code></p>
]]></description><link>https://forum.pycom.io/post/17922</link><guid isPermaLink="true">https://forum.pycom.io/post/17922</guid><dc:creator><![CDATA[binux]]></dc:creator><pubDate>Sun, 01 Apr 2018 07:48:51 GMT</pubDate></item></channel></rss>