当前位置:网站首页>ESP learning problem record

ESP learning problem record

2022-07-06 12:01:00 csdndulala

  1. Arduino ESP32 development environment

    Method 1: Official installation method
    Method 2: Manual installation method
    Both ways are through github download , Will fail

    Method 3: Provided here Another way
    This method has packaged all the tools , Direct installation (arduino_esp32 The version is 2.0.3)

    If you need to use an updated version, you need to use the following methods :
    Method 4: At present, there are two steps to be used github:arduino_esp32 The code base and Compiler tools ( The solution is to bypass github Implementation download )

    The code base can be accessed through Code cloud download code base
    The compilation tool is through get.py Go to github download , Can be json In the document url Change to a downloadable address
     Insert picture description here

    PS Many posts say that you can also download through Xunlei and other download tools , No attempt

  2. esp_now_add_peer Call error Report error as E (109) perhaps E (110)

    resolvent
    By way of ifidx Print It is found that the value is

      Serial.println(" before");
      Serial.println(peerInfo.ifidx);
      peerInfo.ifidx = WIFI_IF_STA;
      Serial.println(" after");
      Serial.println(peerInfo.ifidx);
    

    22:03:42.883 -> before
    22:03:42.883 -> 1073338336
    22:03:42.883 -> after
    22:03:42.883 -> 0

    Question why : Randomize the initial value of local variables . But I don't know this 1073338336 What do you mean Every time you restart it .

原网站

版权声明
本文为[csdndulala]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/187/202207060913337100.html