M
M
Maxim Lomachenko2017-04-23 19:24:46
Arduino
Maxim Lomachenko, 2017-04-23 19:24:46

How to communicate between ESP8266?

Hello! There was a need to transfer data from the MPU-6050 module at a distance via WIFI. I bought two ESP12, I hang an MPU-6050 on one of them, I make it an access point (server) - a transmitter. On the second module, I implement a client, and connect to an access point (from it, the received data goes to the com port and is processed on a PC or laptop). But how to transfer the data, I had a question. It turned out to display data on a web page, but this does not suit me, I need to directly transfer it to the client. I rummaged around the forums a bit, got acquainted with the principle of operation, realized that I needed to transfer via the UPD protocol, and then I hung up. How to implement it for "access point - client" on the Arduino IDE? Does anyone have experience with this, or can give some advice?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander, 2017-04-23
@NeiroNx

Broadcast or multicast sent data, because otherwise you need to know the address of the one to whom to send. At the point - where the sensor uses a client socket on a specific port: processed data from the sensor, sent it. On the laptop (we put another esp on the shelf, the laptop has Wi-Fi) - a server socket that listens on a specific port. There already as the program write and will be processed.

A
Andrey Skorzhinsky, 2017-04-24
@AndyKorg

There is such firmware " TCP2UART " it supports overlays. You only need to make an overlay of work with I2C

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question