wifi.setphymode() and wifi.sleeptype()

Posted on
  • please advise where to find this two methods for class wifi?

    wifi.setphymode() to select a 802.11 mode

    and

    wifi.sleeptype() to make sure wifi is alway on

    have been using them with Lua on ESP8266 and can not find them in Esprunio

  • They don't exist at this point. I used to turn off 11n in another project because there were issues, but I haven't found that with SDK 1.4, is there a reason you need setphymode?

    WRT sleeptype, we haven't worked on sleep stuff yet. Are you trying to disable the DTIM sleep?

  • setphymode is not as important as sleeptype()

    yes, eg like this :

    // keep wifi always on
    wifi.sleeptype(wifi.NONE_SLEEP)
    
  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

wifi.setphymode() and wifi.sleeptype()

Posted by Avatar for MaBe @MaBe

Actions