logo elektroda
logo elektroda
X
logo elektroda

ESP8266 and OTA - programming from your own application in C#

Adix3 939 3
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 19608123
    Adix3
    Level 13  
    Hi.

    I'm new to programming the ESP8266 using the Arduino IDE. I would like, to be able to reprogram the soft from my own application written for the computer in C# in Visual Studio, just don't know how to bite it....
    I know there's a sample ArduinoOTA program in Arduino that allows you to program the ESP8266 over WiFi directly from the Arduino IDE, but I'd like to do a similar upload from within my own application. Perhaps someone has already done something similar and could direct what to use etc?
    Of course, by this "programming" I mean something like this: in this application of mine, in a graphical way, I would select a .bin file with the compiled software and upload it remotely (within the local WiFi network) to the ESP8266 chip.
    Do you have a problem with Arduino? Ask question. Visit our forum Arduino.
  • ADVERTISEMENT
  • #2 19608278
    khoam
    Level 42  
    It all comes down to the implementation of an OTA server for ESP. An example of such a (very) simple implementation in C# is here: Link .
  • ADVERTISEMENT
  • #3 19609000
    Adix3
    Level 13  
    Thanks :) .

    And how is it with this software upload using OTA, because I read somewhere that the ESP8266 does not have a physical EEPROM but emits such memory from Flash. If I update the software via OTA, do I also lose the data held in EEPROM?
    And do I need to change anything in the configuration of the ESP8266 in the Arduino IDE? Because there are different Flash memory capacities to choose from and they have some FS and OTA capacities in brackets, is this something important?
  • #4 19625961
    khoam
    Level 42  
    Adix3 wrote:
    because I read somewhere that the ESP8266 does not have a physical EEPROM but emits such memory from Flash.
    .
    Correct.

    Adix3 wrote:
    If I update the software via OTA, do I also lose the data held in EEPROM?
    .
    EEPROM emulation usually occupies a different partition in flash than OTA, so no data is lost after a soft update via OTA.

    Adix3 wrote:
    It is necessary to change something in the ESP8266 configuration in the Arduino IDE?
    .
    You need to select a configuration in the Arduino IDE that has a dedicated partition for the OTA.
ADVERTISEMENT