Gatttool non-interactive mode --char-write
<p>Still asking about BLE devices and <code>gatttool</code>.</p>

<p>I'm able to send a char-write-cmd in interactive mode, but I'm not able to do the same in non-interactive.</p>

<p>This is what I send in interactive mode :</p>

<pre><code>gatttool -I

[]&gt; connect BTADDR

[BTADDR]&gt; char-write-cmd 0x0040 01

[BTADDR]&gt; exit
</code></pre>

<p>In this way I start the Alert service, which in my case makes the buzzer sounds.</p>

<p>In theory, the non-interactive mode should be:</p>

<pre><code>gatttool -b BTADDR --char-write -a 0x0040 -n 01
</code></pre>

<p>But this do not send the request command event to the board, I'm checking it using a dev board.</p>