I cannot seem to end and then start again a WiFi-Direct Connection.
Can someone explain to me what has to be done and what order?
I've tried these in different orders
I would think there must be a nice clean way to shut down and then restart the connection process again.
It seems after being connected my only way to redo the connection is to turn off WiFi and then turn it back on.
Can someone explain to me what has to be done and what order?
B4X:
Private manager As WifiManager
Private server As ServerSocket
Private client As Socket
Private astream As AsyncStreams
I've tried these in different orders
B4X:
astream.Close
client.Close
server.Close
manager.CancelConnections
I would think there must be a nice clean way to shut down and then restart the connection process again.
It seems after being connected my only way to redo the connection is to turn off WiFi and then turn it back on.