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

Taking long time to scan multiple devices #44

Open
muhammadfaheem-pycom opened this issue Dec 18, 2019 · 5 comments
Open

Taking long time to scan multiple devices #44

muhammadfaheem-pycom opened this issue Dec 18, 2019 · 5 comments

Comments

@muhammadfaheem-pycom
Copy link

Hi, guys, I am trying to config 5 devices but your sample app taking up-to 3 minutes to complete the scanning. the app scans 2 devices very soon like in the first 6 seconds but remains 3 takes 3 minutes.

@fanbaoying
Copy link
Collaborator

Hi, After testing, all 5 devices can be successfully configured with network, the interval time is not as long as you described.
The Broadcast mode can get stuck because it's so heavily used, so check out the Broadcast environment.

@muhammadfaheem-pycom
Copy link
Author

Can you please explain how the broadcast true and broadcast false works?

@fanbaoying
Copy link
Collaborator

Broadcast and Multicast are two modes of sending data.

On the EspTouch project:
The IP address of a Broadcast is 255.255.255.255. This IP address represents all IP addresses in the same subnet.
Multicast IP address is 234.1.1.1 ~ 234.100.100.100, one-to-one group communication between hosts.

@muhammadfaheem-pycom
Copy link
Author

muhammadfaheem-pycom commented Jan 3, 2020

I have some improvement.

  1. There is sleep time after scanning is completed so I think there should be more protocols method to do business logic according to the life cycle of scanning.
    for example
  • (void) scanningWillSleep()
  • (void) scanningDidSleep()
  • (void) scanningWillAwake()
    etc.
  1. Also if I want to repeat the scanning infinite times like until the user stops it by self otherwise scanning should repeat again and again. So you guys are using getTotalRepeatTime variable I want it should support -1 value for infinite times.

@fanbaoying
Copy link
Collaborator

  1. EspTouch does not have a scan, UDP data is sent, and the device receives the data and distributes the network.

  2. If you want to send data without timeout, you can remove the timeout in the "__execute" method of the "esptouchtask" class.

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

2 participants