Can I send text messages to a phone using bluetooth?

I built a wind speed using esphome. It uses hall sensor to detect turns. Now, I would like to bring it with me in a car to calibrate it. But to do that I would need to install a temporary display. But I thought that probably someone has already made a bluetooth in an esp to talk to a phone using a simple terminal app. This way, I could communicate the wind speed via bluetooth to my phone and avoid having to solder a temporary display on the device.

I have searched for this but I only find things related to bluetooth proxy. Anyone had done a similar thing here?

No you cannot nut you could turn on the wdbserver in youf device and setup a tiny wifi network on a pocket wifi and then connect to it with said phone.

Ha. That could be… I’ll read about webserver. Good idea. Thanks

1 Like

There’s a few other ways too but the webserver trick is how I solved a small Minecraft styled lamp for my wife. She takes it to school with her and can connect to it locally to change settings. The webserver automatically shows all the controls you setup for the device so if all you need to do is see things and set things… It should do.

Sounds really usefull then. Would you mind sharing your yaml?

There’s nothing to share. It’s setup in the gui

Not sure to follow you here… we’re talking about esphome right? Then in esphome builder you create the webserver? Is that it?

Any sensor, switch, light, etc setup for the esp device is displayed in a default ui created when you enable the web server component

Ho wow… ok ok I just tried webserver. I see automatically all my sensors… I’m impressed. I only have to figure out how to create a local network between the device and my phone.

1 Like

Sorry was answering three at once. My mistake but yeah just add the webserver comp. Done.

Use WiFi component and enable the AP

Ok thanks. The AP is already configured for fallback hotspot. I tried using the ssid and password set for the fallback but it doesn’t connect. I must be missing something… I keep reading, but if you know what I’m missing… let me know.

Make suiddont have any ‘fancy’ network auto settings. Use 2.4 ghx only on the ssid yih connect to is personally set the esp ip manually in a subnet you expect to use on that app but if it does dhcp it should work.

If the esp is connected to WiFi fallback AP isn’t available
ap_timeout = 0 requires you to manually start ap with button or other manner

Ha ok, thanks a lot. I get it.

1 Like

If you turn on hotspot on your phone, you might be able to do this without AP.

Thanks Karosm, that is perfect solution. The AP sounds to have a problem starting the web server. I was connecting just fine but the webserver was not running. I found reported bugs about that.
But then, the hotspot worked just fine. I did setup the multiple wifi ssid and moved the one for my phone in the first place and tadaaaa. Worked great.
Thanks again

1 Like

You’re welcome!

As a bonus, your phone will give you a fairly accurate GPS speed reading for calibration.

I’m shocked all the above discussion about WiFi, APs and web servers wasn’t covered fully in the ESPHome documentation. Obviously it needs a thorough going over. Shocked, I tell you! I may have to go over there myself and update it.

2 Likes