Search code examples
androidwifi-direct

How can I add extra information to Wifi Direct Service discovery responses?


I am developing a adhoc app using WiFi direct, and my central node have to response the "service discovery requests" with the number of people currently connected to it. Currently it only response with SSID and Password.

How can i add this extra information to response frames?


Solution

  • Basically you need to add the information into your local service advertising once the number of people changes, just check how you are handling the SSID & Password adding and do the same.

    Note that there are caching and delays etc. so the information might not be updated too fast.