tens_esp.ino 957 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. /*
  2. TENS_ESP
  3. *remove UKI references (names etc)
  4. *build OSC commmunication style (cf M_Lavenne)
  5. *use multicast (see udp_multicast2)
  6. *create digipot control functions
  7. *create ID message filtering system using "ESP_NAME"
  8. *add multicast configuration option (0 or 1)
  9. */
  10. #include <Ticker.h>
  11. #include "leds.h" //config and functions relative to leds
  12. #include "ota.h" //config and functions relative to ota firmware updates
  13. #include "wifimgr.h" //config and functions relative to wifi and access point configuration and configuration permanent saving
  14. #include "osc.h" //some helpers functions
  15. void setup ( void ) {
  16. delay(500) ;
  17. Serial.begin(115200);
  18. Serial.println("Starting ESP8266");
  19. setupLeds();
  20. setupWifi();
  21. //setupUDP() ;
  22. //setupOTA();
  23. blueLedState(-1, 500);
  24. }
  25. void loop ( void ) {
  26. //Serial.println(WiFi.status());
  27. StartConfigAP();
  28. //checkOTA();
  29. //UDP_send_receive();
  30. }