#include <BSTest.h>

BS_ENV_DECLARE();

#include <ESP8266WiFi.h>
#include <coredecls.h>

void setup()
{
    Serial.begin(115200);
    BS_RUN(Serial);
}

TEST_CASE("stack in user's HEAP ram", "[bs]")
{
    bool sysstack = (((unsigned long)g_pcont) >> 16) == 0x3fff;
    CHECK(!sysstack);
}

void loop ()
{
    // WPS I link you !
    WiFi.beginWPSConfig();
}
