You are reading a single comment by @barbiani and its replies. Click here to read the full conversation.
  • Hello,

    I am seeing a message that I believe comes from the lower level wifi interface after espruino idles for a while.

    wifi.connect(wifi_options.ssid, { password: wifi_options.password },
      e => { print("WIFI: " + e); }
    );
    wifi.on('connected', () => {
      print('WIFI:', wifi.getIP());
      setTimeout(() => { httpServer(); }, 1000);
    });
    wifi.on('disconnected', () => {
      print("WIFI: Reconnecting...");
      setTimeout(() => { wifi.connect(wifi_options.ssid, {password: wifi_options.password}); }, 5000);
    });
    
     ____                 _
    |  __|___ ___ ___ _ _|_|___ ___
    |  __|_ -| . |  _| | | |   | . |
    |____|___|  _|_| |___|_|_|_|___|
             |_| espruino.com
     2v01 (c) 2018 G.Williams
    Espruino is Open Source. Our work is supported
    only by sales of official boards and donations:
    http://espruino.com/Donate
    >
    WARNING: Scan stop failed
    WARNING: set rssi scan not implemeted yet
    >ets Jun  8 2016 00:22:57
    rst:0x1 (POWERON_RESET),boot:0x17 (SPI_FAST_FLASH_BOOT)
    configsip: 0, SPIWP:0xee
    clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_d­rv:0x00,hd_drv:0x00,wp_drv:0x00
    mode:DIO, clock div:2
    load:0x3fff0018,len:4
    load:0x3fff001c,len:2588
    load:0x40078000,len:7192
    load:0x40080000,len:5288
    entry 0x40080278
    E (28) boot: ota data partition invalid, falling back to factory
    E (517) spiram: SPI RAM enabled but initialization failed. Bailing out.
    WARNING: Wifi:startMDNS - espressif
    WIFI: null
    WIFI: {
      "ip": "192.168.25.8",
      "netmask": "255.255.255.0",
      "gw": "192.168.25.1",
      "mac": "84:0d:8e:20:3d:1c"
     }
    >Date.now()
    =16948.5
    {
      "method": "GET",
      "host": "",
      "path": "/",
      "pathname": "/",
      "search": null, "port": null, "query": null }
    >E (56743709) event: post event to user fail!
    E (56746550) event: post event to user fail!
    E (56749390) event: post event to user fail!
    E (56752231) event: post event to user fail!
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WARNING: Wifi:startMDNS - espressif
    WARNING: Wifi:stopMDNS
    WIFI: {
      "ip": "192.168.25.8",
      "netmask": "255.255.255.0",
      "gw": "192.168.25.1",
      "mac": "84:0d:8e:20:3d:1c"
     }
    ERROR: Socket listen failed
    Uncaught InternalError: Unable to create socket
     at line 3 col 17
    server.listen(80)
                    ^
    in function "httpServer" called from line 1 col 12
    httpServer()
               ^
    in function called from system
    {
      "method": "GET",
      "host": "",
      "path": "/",
      "pathname": "/",
      "search": null, "port": null, "query": null }
    WIFI: Reconnecting...
    WARNING: Wifi:startMDNS - espressif
    WARNING: Wifi:stopMDNS
    WIFI: {
      "ip": "192.168.25.8",
      "netmask": "255.255.255.0",
      "gw": "192.168.25.1",
      "mac": "84:0d:8e:20:3d:1c"
     }
    ERROR: Socket listen failed
    Uncaught InternalError: Unable to create socket
     at line 3 col 17
    server.listen(80)
                    ^
    in function "httpServer" called from line 1 col 12
    httpServer()
               ^
    in function called from system
    > 
    
About

Avatar for barbiani @barbiani started