I have an app which consists of an Android device that processes real time data sent in large packets to it by an esp8266 over wifi. The app also send a few simple commands to the esp from time to time. This all works very well. It has been easy to get the wifi working in various forms using the assistance of this forum, but I am locked in to hard coded parameters.
So now my problem is how to set it all up for real users. Most people using this app will not know the difference between a mac address and a mac feast. I can hardly ask them to enter ssid, password and ip address.
After a lot (lots) of searching and reading I still do not have a definitive idea of the "recipe" to use. Almost all samples use hard coded ssid and other parameters, which is of course useless in production. What is the method typically used?
If I assume the user has a wifi then the esp is a station, and so is the android. This works and I use async streams, but how do I setup the esp in the first instance, ie. when the user first purchases the gizmo with the esp embedded in it. And even then, when the esp is setup, how does the android find it since it is likely to be on a dynamic address. I have tried using host name and that works but every device has a different name since it is composed of part of the mac address.
Or do I run the esp in ap mode and connect the android directly to its private network. Then I seem to be stuck with just a single default gateway.
I just need some direction here. How is this "usually" done?
If someone can point me in the right direction I expect no problems with the coding.
So now my problem is how to set it all up for real users. Most people using this app will not know the difference between a mac address and a mac feast. I can hardly ask them to enter ssid, password and ip address.
After a lot (lots) of searching and reading I still do not have a definitive idea of the "recipe" to use. Almost all samples use hard coded ssid and other parameters, which is of course useless in production. What is the method typically used?
If I assume the user has a wifi then the esp is a station, and so is the android. This works and I use async streams, but how do I setup the esp in the first instance, ie. when the user first purchases the gizmo with the esp embedded in it. And even then, when the esp is setup, how does the android find it since it is likely to be on a dynamic address. I have tried using host name and that works but every device has a different name since it is composed of part of the mac address.
Or do I run the esp in ap mode and connect the android directly to its private network. Then I seem to be stuck with just a single default gateway.
I just need some direction here. How is this "usually" done?
If someone can point me in the right direction I expect no problems with the coding.