I had issue with BLE Connection which would drop after certain time which I solved using solution from this post:
The issue is that the values are automatically reset after next boot.So I have been trying to setup a script that would automatically configure the values on startup.
The script looks like:
#!/bin/sh
echo 16 > /sys/kernel/debug/bluetooth/hci0/conn_min_interval
echo 17 > /sys/kernel/debug/bluetooth/hci0/conn_max_interval
Now I have tried setting up using Cron:
@reboot sudo sh /home/pi/bleConn.sh
I have also tried adding it to rc.local
as per other posts but the script is not executed using either method.
I have also configured for no-pass in visudo.
I want this values to be configured only once at startup(script requires sudo permissions)