0

How can I use BlueTooth on a mobile device to connect to my HC-05 equipped instrument to find the local WiFi AccessPt and enter the PW for my Arduino controlled instrument with ESP8266 WiFi?

I want to set up remote Arduino controllers with WiFi (ESP8288) connections in various locations where I have to log in to the Access Pt. I want to use my phone to make the AP connection, connecting to my instrument's HC-05 via BlueTooth. Does anyone have any code for this? (RoboRemo?) Or am I missing another simpler solution?

Consider the Amazon Echo: You download the app to your phone. You start the app and connect it to the Echo. How? Magic? No, BlueTooth. Next step: Use the app to enter your AP settings. The Echo is now connected to your WiFi. Delete the app.

I want to setup my Arduino devices the same way.

closed as too broad by gre_gor, per1234, VE7JRO, sempaiscuba, MatsK Jun 3 '18 at 5:40

Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • 1
    The question is too broad. And asking how to do it on the phone is off-topic. – gre_gor Jun 1 '18 at 15:19
  • Why do you want to let the instrument to set up the connection to the AP in the first place? Wouldn't it be way more logic to implement this logic in the smartphones app? And your question lack a lot oft information about what and how you want to achieve. – chrisl Jun 1 '18 at 15:57
1

Don't overcomplicate things by adding bluetooth.

If you want to set the WiFi credentials at run time, use the WiFi Manager library. It's exactly what it was designed for.

  • OK. This might work. I'll try it. But I was hoping to find/make something less techie, for my users. – Rick_CBR929RR Jun 1 '18 at 17:07
  • @Rick_CBR929RR: I'm sure that WiFi Manager will be much less 'techie' than a Bluetooth solution. It's very user-friendly, in my opinion, it comes with a nice user interface that isn't any more difficult than setting the WiFi AP on your phone or laptop. – tttapa Jun 1 '18 at 17:12
0

Ok, now your question looks better and clear.

Its not a problem to connect to HC-05 from your cell. As HC-05 has RFCOMM you can simple send commands to it from your cell phone over Bluetooth.

I have no idea about your instrument firmware and if you have access to its source code but there is nothing hard to do what you need.

Of course yo umust know your device's commands (if you do not have its firmware source code) or modify its firmware to accept commands from Bluetooth connection.

Depending on your mobile device (Android, iOS) you can use any Bluetooth Library (both have good Bluetooth APIs) to develop your application.

-1

Bluetooth and WiFi are different things. Absolutely different (except more or less same frequence used). Its the same as asking how to connect to WiFi from your car radio.

  • Of course. I want to enter AP info at run-time. A BT connection will let me. – Rick_CBR929RR Jun 1 '18 at 15:06
  • 1
    ESP8266 hs no Bluetooth on board. You can not connect to WiFi (ESP8266) using Bluetooth. Only WiFi connection is possible. – Mike Petrichenko Jun 1 '18 at 15:23

Not the answer you're looking for? Browse other questions tagged or ask your own question.