![]() I see part of sketches posted that seem to indicate the answer is there but I can't get them to work. For that to work I need to convert the WiFi.IPaddres into a string or at least the last 3 of the address into a string. It would be a simple thing to just have the wifi connect process loop until it gets the correct IP address, waiting out what ever issue is with the AP. That way when it correctly connected I know what the address will be. I have the router set to fix the IP address for the ESP to a specific IP address based on its mac address. What I have been trying to do is add to the current script so the wifi connect function will run until it connects the router instead of hanging up when the AP starts to act up. Naturally, it is random and the AP seems to correct itself, but by then the sketch has hung up and dead in the water. My though is that the AP is messing up and when I connect to a network it may just be connecting to the AP. When there is a problem the IP address is 192.168.1.100. I noticed that when thing are working I end up having an IP address of 192.168.68.220. Or loosing wifi connection while the sketch is running and it hangs up the sketch. It seems unreliable at times and instead of connecting to the base router it seem I end up connecting to just the AP. The problem has to do with my having to connect to the internet through an AP. ![]() I use ESP.restart() to start the sketch over because that is the only way I have found to get the ESP to send multiple emails. Then sends that information as text in an email. I put together a sketch for a ESP8266 that collects the temperature difference between the input and output temperature of an air-conditioner and the out side temperature in a string ever minute. I am sure that it is because I know just enough to get into trouble. ![]() I have looked through previous responses to this question and have not been successful in having them work.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |