Connecting 2 devices directly without internet

Hello,

would it be possible for connecting 2 devices directly?

I mean the folllowing.
I have 2 devices, 1 called master and 1 called slave.
Is it possible to make the master don’t connecting to the wifi, but creating his hotspot.
And then make the slave connecting to the fallback hotspot of the master?
And that the 2 devices then can exchange some information?
I do it now with http_request when they are both connected to my wifi.

But I would use the same 2 devices at my office, but I haven’t got the credits of the wifi.

Kind regards,
Frederik

Search the forum for esp-now

Yes.
Internet is not generally needed for esphome devices.
But if I understood you want to run it without connection to local network.
I have never tried, but I expect it to work on ap mode as well (not fallback).
You need to set wifi in ap mode and setup webserver.
You can communicate through HTTP requests.

wifi:
  ap:
    ssid: "my_ap"    


web_server:
  local: true

You could use your phone as hotspot.

You will also need:

These were introduced a couple of releases ago so the user base for assistance setting up may be small.

1 Like