Hi all,
Currently I send data between 2 units with the sendto command.
But I never know if this command arrives, so I just keep sending it every 5 seconds.
Is there another way to communicate in such a way that the receiving unit send a return message?
Best way for inter-unit communication
Moderators: grovkillen, Stuntteam, TD-er
-
- Normal user
- Posts: 66
- Joined: 16 Feb 2017, 09:23
- grovkillen
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
- Contact:
Re: Best way for inter-unit communication
In that case you should really consider MQTT, that protocol is doing just that - communication from 1 to MANY or MANY to MANY or MANY to 1. Super fast acknowledgement even in 10 000+ clients environment.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you
-
- Normal user
- Posts: 66
- Joined: 16 Feb 2017, 09:23
Re: Best way for inter-unit communication
thanks, so I believe I need to use publish instead of sendto in that case.
But how do I know the publish action succeeds?
But how do I know the publish action succeeds?
- grovkillen
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
- Contact:
Re: Best way for inter-unit communication
One way is use MQTT import or have the other unit(s) to publish something when they receive a call.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you
Re: Best way for inter-unit communication
Note that you will need a separate computer running a broker, to use MQTT.
Who is online
Users browsing this forum: No registered users and 2 guests