Code Monkey home page Code Monkey logo

arduino-library-wifilink's Introduction

Hi there 👋

I am a professional software engineer, but most of the repositories here are related to my hobby Arduino. Some of my Arduino networking related repositories are in Networking for Arduino.

If you want to say thank you with a donation, you can Buy Me A Coffee or use PayPal Donate with PayPal

arduino-library-wifilink's People

Contributors

bingarduinno avatar jandrassy avatar sergiotomasello avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

arduino-library-wifilink's Issues

WiFi.resetESP() hang

Hello,
If I use WiFi.resetESP () in a sketch, it seems that Serial/WiFi communication via arduino and esp8266 hangs.
ESP8266 is still available, but I cannot connect to Telnet or http on the Arduino Nano.
The OTA for ESP8266 and Arduino Nano works anyway.
If I remove WiFi.resetESP () and WiFi.checkFirmwareVersion(..) in the sktech, it works (Telnet and http via Nano).

Same problem with: WiFi.checkFirmwareVersion only.

Mega + wifi board: does not seem to be able to do anything wifi-related

I got myself one of the boards as described in this article: https://www.instructables.com/id/Arduino-MEGA-2560-With-WiFi-Built-in-ESP8266/

I've installed the wifilink firmware, and it seems to be working fine. It is connected to my wifi, and I can check all data when surfing to its ip address.

I've tried running the example sketch "ConnectWithWPA", filled out my SSID and pass, and put some checkpoints in the code:

void setup() {
  //Initialize serial and wait for port to open:
  Serial.begin(115200);
  while (!Serial) {
    ; // wait for serial port to connect. Needed for native USB port only
  }

  Serial.println("check 1");
  
  if (WiFi.checkFirmwareVersion("1.1.0")) {
    Serial.println("check firmware");
    
    WiFi.resetESP(); // to clear 'sockets' after sketch upload
    delay(500); // let firmware initialize
  }
  
  Serial.println("check 2");

In the serial monitor, I see the below output:

check 1
23:52:09.787 -> ⸮7�

So, the code successfully runs until 'check 1', but then does something weird: instead of either printing 'check firmware' or 'check 2', as expected, I seem to be getting some weird output '⸮7'. I have no idea how to continue. It seems to be stuck on the WiFi.checkFirmwareVersion call, and changing this to WiFi.status() yields the same issue. What might I be doing wrong?

Issues accessing any WiFi. static methods after init

Kinda related to my previous question of a couple of months ago, found here: #1

I flashed a new board (same one as mentioned there, https://robotdyn.com/mega-wifi-r3-atmega2560-esp8266-flash-32mb-usb-ttl-ch340g-micro-usb.html), and the ESP8266 chip is correctly connected to the network.

void setup() {
  Serial.begin(19200);

  while (!Serial) {
    ; // wait for serial port to connect. Needed for native USB port only
  }

  Serial.println("Setting up wifi");
  
  #if !defined(ESP_CH_SPI)
    Serial3.begin(115200); // speed must match with BAUDRATE_COMMUNICATION setting in firmware config.h
    WiFi.init(&Serial3);
  #endif
  
  Serial.println("Setting up wifi 2");
  
  if (WiFi.checkFirmwareVersion("1.1.0")) {
    Serial.println("resetting ESP");
    WiFi.resetESP(); // to clear 'sockets' after sketch upload
    delay(500); // wait while WiFiLink firmware connects to WiFi
  }
  
  Serial.println("Setting up wifi 3");
  
  if (WiFi.status() == WL_NO_WIFI_MODULE_COMM) {
    delay(2000);
    Serial.println("communication with WiFi module not established. Resetting...");
    resetFunc(); 
  }
  
  ...... // more code
 

In the output, it shows the first 2 debug lines, and then nothing:

21:07:52.685 -> Setting up wifi
21:07:52.685 -> Setting up wifi 2

I would assume it either printing "resetting ESP" or "setting up wifi 3", but none of those happen. Commenting the if, and having it run WiFi.status(), yields the same results: nothing after the call to the static wifi class method.

Any ideas on what I might be missing here?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.