I am new to Blynk, I read throught the forum and found the question about HC-06 but none of them can solve my problem.
• Hardware model + communication type. Arduino UNO with HC-06 module
• Smartphone OS: Android 7.1.1
• Blynk server
• Blynk Library version 0.5.2
• Add your sketch code. Serial_HC05_HC06
I copy and paste the correct Auth Token and it works when Serial USB connection, it is online when Bluetooth connected but no response to button press on Blynk.
Is it still required to have the Internet connection for HC-06 connection?
Thanks for your reply. How can I do the connection to the server for login and authentication code generation & authorisation if I insist to use the Bluetooth as the connection between mobile phone and Arduino? Could you please advise the steps?
Remember, Blynk is an Internet Of Things product… it is designed to work over the internet!
As long as the phone (App) can connect to the server (cloud) via a cell connection to the internet, then the BT link between the phone and the device will work as normal.
The only way to use Blynk completely Internet free, is to have a Local Server running on something like a Raspberry Pi that is also setup to act as an AP for a local private network that the phone can connect to via WiFi… but that is getting to be an advanced and potentially complicated setup… not for beginners or even many intermediary users.
I am familiar with the network connection. My phone can connect to Internet either via the cell network or private network. When I read the description about Bluetooth, it says
Widget for enabling Bluetooth support. At the moment Bluetooth widget supported only for Android and requeirs internet connection in order to login and load your profile. However this will be fixed soon. Also some Blynk widgets not allowed with Bluetooth.
I connect the Bluetooth using the HC-06 and Blynk also say it is online? Is HC-06 compatible? What is the mean of the message say “However this will be fixed soon”?
FYI, the Bluetooth connection between phone and Arduino works and the Blynk also show Online since 16:38 May 28, 2108 but the control not work.
When you view my screenshot here https://prnt.sc/jnl1yc you can find the Bluetooth connection is successfully made and Blynk is online.
If I open the Serial Monitor, I find the message
[82] Connecting…
[2223] Login timeout
[5223] Connecting…
[10343] Connecting…
[15463] Connecting…
[17583] Login timeout
but I can’t see the message “Waiting for connections…” coded in the program. How can I view the Serial.println()
Do you have any idea about my Bluetooth connection?
but below code I open from Arduino IDE > File > Examples > Blynk > Boards_Bluetooth > Serial_HC05_HC06 and it doesn’t work even I have the correct pin connection
Looks like small error in sketch that wouldn’t actually affect compiling or function as the 2nd command is the correct one and would supersede the 1st.
Normally one of the two #include groups would be commented out depending on use.
Code has no version in of itself… and is very flexible depending on each users hardware and installed libraries… as in there will be times that old commands or library references may need to be edited in old code to match new libraries. Nothing is written in stone