M
M
Michael2021-04-13 13:32:37
WiFi
Michael, 2021-04-13 13:32:37

Is it possible to send data from the access point (nodemcu board) to the conn. to her station?

I have two NodeMcu boards.
One reads data from sensors and sends it to a web server that it creates. And plus, it is an access point.

The second board controls the relay in the outlet. It is a station that connects to an access point.

I have already configured them so that the station sends a simple message to the access point every 5 seconds:
sending data from the station.
60757203b2887619084042.png

Receiving data at the access point.
60757237cd24b968763125.png

This can be used to send relay status to an access point. Then I plan to display this status on the web server in the form of a button (ON / OFF).

But is it possible to set up a reverse transmission so that when a button is pressed on the site, this is recorded by the access point and it sends a new status to the station? The station in turn will switch the relay.

UPD: Or advise other connection options. For example, is it possible to write your own mqtt broker based on the same nodemcu? And how then to connect to it other nodes?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Konstantin Zaitsev, 2021-04-13
@KonstantineZ

Yes, you can. Make a web server on the relay board as in the one with sensors and when you press a button on the page of the first board, send data to the second board in the same way as the second one now sends data to the first one.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question