-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failure to start beacon from crontab on reboot. #48
Comments
Hi..
When I run this standalone in bash, I get:
However, the beacon comes on properly. When I put in in crontab -e, I get:
And nothing else... There is no beacon being advertised... Any help will be much appreciated... been struggling with this. |
I found this: noble/bleno#136 which seem to describe the Command Disallowed problem with a bypass, but it does not seem to relate to the main problem of not being able to start beacon on reboot. |
@mike-pun I would make sure the cron tab starts after the bluetooth adapter is up and |
The Cron does start. Other things are running. I tried putting in a time of about 20sec delay to see if it helps but no luck. How do I make sure that bluetoothd is fully running? |
I have been working with a Raspberry Pi running Ubuntu Mate 16.04. I am doing a straight forward advertiseURL and the code works well when running from a bash file, either under nodejs or pm2. However when I try running the script in a crontab on @reboot, the beacon does not turn on. I have done a sudo setcap cap_net_raw+eip $(eval readlink -f
which node
) so that I can run without sudo.I don't see where/how I can generate an error indicator or message to see what the problem is, so:
How to verify if the advertiseURL has worked, that advertising has started, and to generate an exception if not?
Any idea why the script would not work in a crontab?
The text was updated successfully, but these errors were encountered: