Skip to content

Update Dont Work For AI THinker board #414

Answered by Hieromon
afshinjian asked this question in Q&A
Discussion options

You must be logged in to vote

@afshinjian I felt your question wasn't right and reluctantly skimmed your code. As a result, there are some unsuitable points in your code as followings:

  1. The function definition is incorrect
    The checkconnection function declares with the String type, but it never returns the String value. Its definition must be the void type. Same as the testSitu.
  2. Attempts to perform a long delay that breaks the handleClent loop
  • In loop function
    Portal.handleClient();
    digitalWrite(16, LOW);
    delay (1500);    // <-- Disturb the handleClient loop for WebServer behavior
    digitalWrite(16, HIGH);
    
    while (count > 0) {
      sendPhoto();
      Serial.println("Sending IMAGE to SERVER");
      delay (20000);  // <-- 20 seco…

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by Hieromon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #413 on October 11, 2021 14:22.