Skip to content

Connection status Ethernet.connected() not stable and provisioning using httpUpdate.update not working #9

@ssditt

Description

@ssditt

I have selected this library for a project with cable connections to ENC28J60 adapter and ESP32.
networking-for-arduino/EthernetESP32@^1.0.2
Basic functionality e.g. UDP and HTTP seems to work great. I would like to improve reliability checking status of Ethernet connection to avoid total disfunction or delays in program run in case of network failure. Unfortunatelly method Ethernet.connected() running each several seconds gives faults frequently when there shouldn't be a reason for. So if this is not a way how to handle potential disruption of Ethernet connection and program blocking, what is another way how to check network status and attempt to restore networtk communication without wasted delays in case of real network failure?

Another question is about provisioning using hhtp.update function. I am used to use function t_httpUpdate_return ret = httpUpdate.update(Wifi, "domain.xyz", 80, fwFile.c_str()); what works great to replace firmware automatically when requested.
With EthernetESP32 library I cannot find any equivalent from overloads how to use this method.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions