Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ESP-Now with one master device #1

Open
JoniR opened this issue Aug 25, 2017 · 4 comments
Open

ESP-Now with one master device #1

JoniR opened this issue Aug 25, 2017 · 4 comments

Comments

@JoniR
Copy link

JoniR commented Aug 25, 2017

Hi,
Thank you for good examples. I am just wondering before jumping extensive implementation. Do you guys think that this kind of scenario would be possible to implement with ESP-Now? So that I have various amount of battery powered ESP-Now enabled sensors which are sending data to one usb powered ESP-Now, from that one "master" ESP-Now, I can then push data over the Software Serial to "normal" ESP8266 which can then connect to normal wi-fi and for instance push values to MQTT.

What I am wondering, is it possible to have this kind of one "master" ESP-Now which then receive values from all others?

image

@torntrousers
Copy link
Contributor

Yes thats exactly the kind of scenario thats suitable for ESP-Now, and the EspNowWatsonRestartingGateway in Github is written to support multiple remote sensors with the remote ESP's mac address used as part of the MQTT topic.

If there are lots of the battery powered sensors and they send readings often then there may be the odd collision causing a read to get lost, but the send is very quick - just milliseconds - so you'd need a lot sending often for that to be a significant issue.

@YBIacous
Copy link

YBIacous commented Jul 11, 2018

Hello JoniR and torntrousers,

First: I'm a noob at programming.

I'd like to do the same schema as JoniR:

  • 8 [ESP8266 with BME280] as sensors
  • a Gateway with ESP8266 (as ESPnow receivers) and ESP8266 (as WIFI transmitter / MQTT to Raspberry) (other, if easyer, ESP8266 as ESPnow receiver directly connected to the Raspberry).

Now: I've difficulty to define the IP of the raspberry (on the sketch EspNowFromSerialGateway.ino) and also the fact that it as to be a MQTT message.

So I would be gratful to know if JoniR succeded and any help to do the same would be very appreciated.

Sorry for my English.

@JoniR
Copy link
Author

JoniR commented Jul 11, 2018

Hi, Unfortunately I never implemented my idea. In fact, I am using Wemos D1 mini devices and for some reason (what I never investigated) chip crashed every time when message was received. This didn't happen with ESP-01 if I remember right. Anyway I think you should take an look at EspNowWatsonRestartingGateway.ino, there is code for MQTT

@YBIacous
Copy link

Thanks a lot,
Yes, the EspNowWatsonRestartingGateway.ino contain the MQTT sketch.

As I have 8 sensors and transmission set to each minute, I like to implement the WIFIGateway solution rather than the EspNowWatsonRestartingGateway.ino as to not loose to much measure.
And for that I have another question, how do you do the wiring between the two ESP8266 (ESPnow receiver and WIFI Gateway) for the serial communication? (just the TX and RX is not working for me)

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants