int main(int argc, char *argv[]) { (void) argc; (void) argv; mongoose_init(); for (;;) { mongoose_poll(1000); } mongoose_destroy(); return EXIT_SUCCESS; }
static void post_init(struct v7 *v7) { sj_prompt_init(v7); do { /* * Now waiting until mongoose has active connections * and there are active gpio ISR and then exiting * TODO(alashkin): change this to something smart */ } while ((mongoose_poll(100) || gpio_poll()) && !sj_please_quit); mongoose_destroy(); }