ESP_UKI.ino 663 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /*
  2. ESP_UKI
  3. TODO : better function organizing
  4. add firmware number in webserver
  5. send ADC to default IP via udp, allow configuration
  6. build onDemand config mode
  7. load/save parameters (fixed ip, uki_name, udp_port udp_ip
  8. */
  9. #include "includes.h" //headers and variables declaration
  10. void setup ( void ) {
  11. delay(500) ;
  12. Serial.begin(115200);
  13. Serial.println("Starting ESP8266");
  14. setupLeds();
  15. setupWifi();
  16. setupUDP() ;
  17. //setupOTA();
  18. blueLedState(-1, 500);
  19. }
  20. void loop ( void ) {
  21. //Serial.println(WiFi.status());
  22. StartConfigAP();
  23. //checkOTA();
  24. UDP_send_receive();
  25. }