Discuss here different C compiler set ups, and compiling executables for the ESP8266

User avatar
By trendchaster
#26462 hello kolban,
Currently I am working on promiscuous mode i.e sniffer. I want to enable/disable promiscuous mode for some period of time.Do you have any idea how to implement it.I tried using wifi_promiscuous_enable(0) but it wont work.
Thanking you in advance.
User avatar
By UKSRemix
#26728 im in the process of trying to get interrupts to work im almost there just unsure how to no what pin triggers it lol
Code: Select allvoid call_back (uint32 interruptMask, void *arg)
{
     uint32 gpio_status;
    gpio_status = GPIO_REG_READ(GPIO_STATUS_ADDRESS);
    GPIO_REG_WRITE(GPIO_STATUS_W1TC_ADDRESS, gpio_status);
    os_printf("call_back");
}

void user_init()
{
    uart_div_modify(0, UART_CLK_FREQ / 115200);
    GPIO_REG_WRITE(GPIO_STATUS_W1TC_ADDRESS, BIT(5));
    gpio_pin_intr_state_set(GPIO_ID_PIN(5), GPIO_PIN_INTR_POSEDGE);
    ETS_GPIO_INTR_ATTACH(&call_back, 0);
    ETS_GPIO_INTR_ENABLE();
}