1. Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
    Dismiss Notice

Arduino Time Unset_Sync_provider()

Discussion in 'Microcontrollers' started by dr pepper, May 20, 2017.

  1. dr pepper

    dr pepper Well-Known Member Most Helpful Member

    Joined:
    Oct 6, 2008
    Messages:
    4,757
    Likes:
    258
    Location:
    North west UK
    I have a project that is going well.
    I host a webpage displaying various realtime info.
    It was going well till I decided to send a email every so often, using the arduino time lib to send an email at a certain time/day of the week.
    It all seems to work, however if a new client tries to connect or an xml update file is being uploaded and a time sync occurs at the same time (I'm using ntp web time update) the esp goes into error 29 (attempt to write to a protected area of memory).
    I assume this is due to to the tcp/udp clash.
    I use set_sync_provider () and set_sync_interval () at 30s intervals to sync the time, so I have no control over when sync happens.
    Is there a way I can control this?, a unset_sync_provider would be good if there was one, or is there a way to manually invoke a time sync, then I have control.
     

Share This Page