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
Cant use HTTPProxy with puck #1
Comments
Can you check the pi with your phone and 'nrf connect'? My guess is it doesn't have services. I don't have my pc handy at the moment, but have a look at bleno's NPM docs. I seem to recall you have to do something like disabling the Bluetooth service - I may have missed that out of the docs |
You're correct. I forgot to:
But there is another problem, because my requests are blocked :) Thanks! P.S.: Is there any way to do a PUT/POST request? |
Thanks! Sorry, totally my fault there :) Yeah, you'd have to change the code in the Puck module http://www.espruino.com/modules/ble_http.js There's a comment that says 'http get' - just change the number 1 to one of the values from the http proxy spec |
Thanks :) Its a bit pointless because of the 20 bytes limit. Even the urls are too large :) Will close this issue now, thank you very much :) |
No problem. I think BLE 5 handles up to 512 bytes, which makes it a lot more useful. Support for that will come eventually |
Nice. Please let me know if I can do something to get BLE5 alive :) |
Hi,
I try to setup my pi as an espruino hub to allow my pucks to do some http requests, but for some reason it wont work :/
From your basic example I get this on the puck:
and on my pi I get:
After some time the process exits. This is my config.json
Any hints? :)
Thanks!
The text was updated successfully, but these errors were encountered: