1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- /*
- TENS_ESP
- *remove UKI references (names etc)
- *build OSC commmunication style (cf M_Lavenne)
- *use multicast (see udp_multicast2)
- *create digipot control functions
- *create ID message filtering system using "ESP_NAME"
- *add multicast configuration option (0 or 1)
- */
- #include <Ticker.h>
- #include "leds.h" //config and functions relative to leds
- #include "ota.h" //config and functions relative to ota firmware updates
- #include "wifimgr.h" //config and functions relative to wifi and access point configuration and configuration permanent saving
- #include "osc.h" //some helpers functions
- void setup ( void ) {
-
- delay(500) ;
- Serial.begin(115200);
- Serial.println("Starting ESP8266");
- setupLeds();
-
- setupWifi();
- setup_OSC() ;
-
- setupOTA();
-
- blueLedState(-1, 500);
-
-
- }
- void loop ( void ) {
- //Serial.println(WiFi.status());
- StartConfigAP();
- checkOTA();
- handle_OSC();
-
- }
|