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.