wlan.reconnect()

Posted on
  • I'm experiencing issues with the CC3000 dropping off the network after a period of time. I see this sort of thing has been mentioned on the forum before.

    I'm trying wlan.reconnect in setInterval which returns the wlan.connects callback 'My IP is...' line to the console, so I can keep the CC3000 alive this way by not giving CC3000 the opportunity to timeout/disconnect?

    I'm testing it as I write but thought I'd ask here, am I right here, or will the issues with the CC3000 dropping off the network mean it eventually won't respond to these reconnect requests?

    Best

    Ollie

  • Hi Ollie,

    It should always respond to reconnect, as that will effectively totally power the module off and back on.

    I guess if you are making a client, the ideal solution might be to disconnect when you're done, and only connect right before you need to use the connection.

  • I'm using as a server but this approach is keeping the board on the network (save for when it's reconnecting). Thank you again.

    Best

    Ollie

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

wlan.reconnect()

Posted by Avatar for Ollie @Ollie

Actions