9

I need to send Wi-Fi credentials to my Android Things headless device via a mobile app. As it is right now, the device advertises on Bluetooth, the mobile app connects to device and sends Wi-Fi credentials to it. The device then stops advertising via Bluetooth and connects directly to the users Wi-Fi network using the credentials acquired via Bluetooth.

Is it possible to set up the device to advertise via Wi-Fi instead of Bluetooth? If so how could this be done? I can't find any information or tutorials on the subject probably because android things is still relatively new.

Looking for any advice/libraries/tutorials to send me in the right direction.

  • Are you planning to use an open Wi-Fi or some sort of pre-shared key? – Helmar May 31 '18 at 19:40
  • @Helmar open Wi-Fi should be enough? but if there is away, please dont hold back, the more knowledge the better... – Anthony Raimondo May 31 '18 at 21:31
  • Maybe android.stackexchange.com/could help? – Mawg Jun 1 '18 at 8:15
  • 2
    Perhaps, this could help: iot.stackexchange.com/a/658/3141 Also have a look at the linked article in the answer. – pan Jun 4 '18 at 11:16
  • What's the motivation to go from Bluetooth to wifi? I'd love to see how you got Bluetooth working to get wifi from an app. – Loran Nov 16 '18 at 2:31

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.