I'm using an ESP32 NodeMCU to connect to an HC-05 module. All is working well. But I have a question... The connect() method returns a bool value, but in my case it seems to return TRUE whether it connects or not. My apologies if I'm being dense, but would love some input on what the return value should indicate.
Thanks!
BluetoothSerial.connect(address) return value
-
- Posts: 9727
- Joined: Thu Nov 26, 2015 4:08 am
Re: BluetoothSerial.connect(address) return value
Moved to the Arduino subforum.
Re: BluetoothSerial.connect(address) return value
I'm curious as to why this would be moved to the arduino sub-forum. None of the hardware mentioned uses an arduino. Is it because this module is programmed through the arduino IDE or because it's an arduino-like module?
Just asking so I can try to post in the appropriate area in the future. Thanks.
Just asking so I can try to post in the appropriate area in the future. Thanks.
-
- Posts: 9727
- Joined: Thu Nov 26, 2015 4:08 am
Re: BluetoothSerial.connect(address) return value
If I'm not mistaken, BluetoothSerial.connect() is part of the Arduino api, I don't recall it being in ESP-IDF. If I am mistaken and you are using ESP-IDF instead, I can move it to a more relevant subforum.
Re: BluetoothSerial.connect(address) return value
You're probably right. I've only worked in the arduino api, so I don't know any different. Thanks.
Who is online
Users browsing this forum: No registered users and 57 guests