Skip to content
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

'class BluetoothSerial' has no member named 'setPin' #4

Open
wannestal opened this issue Jul 5, 2024 · 1 comment
Open

'class BluetoothSerial' has no member named 'setPin' #4

wannestal opened this issue Jul 5, 2024 · 1 comment

Comments

@wannestal
Copy link

This line in bluetooth.ino:

SerialBT.setPin(pin); // pin as in "PIN" This is the BT connection pin, not login pin. ALWAYS 0000, unchangable.

gives an error:

'class BluetoothSerial' has no member named 'setPin'.

I cannot find the cause nor solution. Any idea?

@DwayneGoddem
Copy link

I had to use VSCode for this to work. The module for Bloutooth.h is a from a different source and it support PIN.

There is a few mods you also need to make to the code you can find them in other messages.

I did add MQTT support as it works with home assistant.

but I'm finding the biggest issue is it only connects to the Bluetooth with connected to the USB serial interface to start it.

This is not just this code but any Bluetooth serial. I have tied on a few board and they are all the same. :(

If anyone knows how to address that it would be fantastic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants