Skip to content

Reconnecting Feather WICED to Wifi #83

@danielcompton

Description

@danielcompton

This is just a tracking issue to follow along for https://forums.adafruit.com/viewtopic.php?f=57&t=114903. As best as I could tell it still hasn't been resolved, although there is a workaround provided of using a watchdog timer to reset the board if it hangs. More info on watchdog timers at http://librambutan.readthedocs.io/en/latest/libmaple/api/iwdg.html.

#include <iwdg.h>

// ...

// turn on to recover after hang
boolean useWDT = true;

void setup()
{
  //...

   if( useWDT )
  {
    iwdg_init(IWDG_PRE_128, 11500000);
  }
}

void loop()
{
// ...
  # Call this to reset the watchdog timer.
  # If it isn't called then the board will reset.
  iwdg_feed();

}

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