When using the WiFi-Direct library I often encounter the problem that, after loosing the connection with another device, WiFi-Direct can no longer find the other device, despite the fact that it was re-activated. The message "Searching for devices" does not go away. This problem sometimes seems to resolve itself after retrying to connect about a quarter of an hour later.
It seems that the WiFi-Direct library (wrapper) definitely does not cause instant changes to WiFi-Direct itself.
Also my app (that contains WiFi-Direct) crashes after I have used the WiFi Direct Example. The Error is "Address already in use". Changing to another port number in my App does not solve this nor does calling "manager.stopdiscovery" or "manager.cancelconnections" in the Service1 module.
Overall I find WiFi-Direct rather unpredictable and unreliable. I am trying to use WiFi-Direct to send GPS data via Wifi from a mobile phone to an Android E-Reader (that does not have a GPS). It works, but sadly is unstable. Any ideas?
Update:
After removing If groupIP = "127.0.0.1 then "server.listen" in the Service1 module everything seems to work much better! No idea why.
It seems that the WiFi-Direct library (wrapper) definitely does not cause instant changes to WiFi-Direct itself.
Also my app (that contains WiFi-Direct) crashes after I have used the WiFi Direct Example. The Error is "Address already in use". Changing to another port number in my App does not solve this nor does calling "manager.stopdiscovery" or "manager.cancelconnections" in the Service1 module.
Overall I find WiFi-Direct rather unpredictable and unreliable. I am trying to use WiFi-Direct to send GPS data via Wifi from a mobile phone to an Android E-Reader (that does not have a GPS). It works, but sadly is unstable. Any ideas?
Update:
After removing If groupIP = "127.0.0.1 then "server.listen" in the Service1 module everything seems to work much better! No idea why.
Last edited: