P
P
Petr Vasiliev2018-10-21 19:30:35
Do it yourself
Petr Vasiliev, 2018-10-21 19:30:35

How to connect many ESP8266 to wifi?

The essence of the problem:
There are from 30 to 70 esp8266 that generate data and must send this data to the server.
How to organize it?
Two options are spinning in my head: a lot of expensive routers or storing data and waiting in line and sending, respectively, in turn.
The problem of the first solution: too expensive for this task, the unpredictability of the behavior of a wifi network with such a saturated air.
The problem of the second solution: a lack of understanding of how to implement the queue, on what basis to give places, a possible problem with memory (ROM - is there enough space, RAM - is there enough RAM to send the entire file)
Wifi is a prerequisite. Excess bicycle equipment is not allowed. Everything needs to work out of the box, with hardware that you can buy in the store.
It would be ideal to somehow send a signal from the server (vps) about polling the sensor, by analogy with push, but I'm not sure if this can be done with esp8266.
Please tell me a solution that will allow you to connect esp to the network, taking into account the number of 30-70 in one room, without wires.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
J
jcmvbkbc, 2018-10-22
@jcmvbkbc

There are 30 to 70 esp8266s that generate data and have to send that data to the server.
How to organize it?

How many devices are not very important, more important is how much data and whether their delivery is critical. If delivery is not critical, you can use a connectionless protocol, some kind of UDP, attach esp32 as stations to one access point and just send. If the data is significantly less than the network bandwidth, you can also not take a steam bath, join a single access point and simply send them. Problems should be expected if there is a lot of data and delivery is critical.
Decide on these two options first.

A
Aleksey Ilyin, 2018-10-21
@alksily

IMHO, the queuing scheme can be implemented something like this: for each device, set an ordinal id, which in turn sets the time offset of the communication window, close the channel after data transmission.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question