ESP_UKI.ino 635 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. Serial.begin(115200);
  12. Serial.println("Starting ESP8266");
  13. setupLeds();
  14. setupWifi();
  15. setupUDP() ;
  16. //setupOTA();
  17. blueLedState(-1, 500);
  18. }
  19. void loop ( void ) {
  20. //Serial.println(WiFi.status());
  21. StartConfigAP();
  22. UDP_send_receive();
  23. }