duinoapp / duinoapp-client

GNU General Public License v3.0
12 stars 9 forks source link

100% Error When Uploading to Device #55

Closed amknana closed 2 years ago

amknana commented 2 years ago

Hello,

I am using Arduino Uno and running duino.app on Windows 10. I am trying to code how to sensor temperature and humidity using DTH 11 with Adafruit sensor library.

However when I try uploading the code, it always shows 100% - Error. Any tips on how to fix this? The code does not show any error. This is what is shows me: image

#include "DHT.h"
#define DHTPIN 2
#define DHTTYPE DHT11

DHT dht(DHTPIN, DHTTYPE);

void setup() {
  Serial.begin(9600);
  dht.begin(); // initialize the sensor
}

void loop() {
  // wait a few seconds between measurements.
  delay(2000);

  // read humidity
  float humi  = dht.readHumidity();
  // read temperature as Celsius
  float tempC = dht.readTemperature();
  // read temperature as Fahrenheit
  float tempF = dht.readTemperature(true);

  // check if any reads failed
  if (isnan(humi) || isnan(tempC) || isnan(tempF)) {
    Serial.println("Failed to read from DHT sensor!");
  } else {
    Serial.print("Humidity: ");
    Serial.print(humi);
    Serial.print("%");

    Serial.print("  |  "); 

    Serial.print("Temperature: ");
    Serial.print(tempC);
    Serial.print("°C ~ ");
    Serial.print(tempF);
    Serial.println("°F");
  }
}

Thank you!

mwb9aa commented 2 years ago

I have the same issue, but with a different code. Still Windows 10, using the new edge browser based on chromium.

amknana commented 2 years ago

Hi! It's been a long time since I got this problem but I ended up solving it. Unfortunately as I was just using duino app that one time, I can't recall how I solved it. :( But we did it using the same device.

If I'm not mistaken, it's related to us clicking the wrong button so it's just not uploaded right. Maybe the best thing is to really see those who have done it and see them do it step by step.

On Tue, Aug 30, 2022 at 2:57 AM mwb9aa @.***> wrote:

I have the same issue, but with a different code. Still Windows 10, using the new edge browser based on chromium.

— Reply to this email directly, view it on GitHub https://github.com/duinoapp/duinoapp-client/issues/55#issuecomment-1230796288, or unsubscribe https://github.com/notifications/unsubscribe-auth/AX3CCCNVVEMITEKFPHEJRYTV3UIZDANCNFSM5V7EQCHA . You are receiving this because you authored the thread.Message ID: @.***>

-- Best regards,

Angela Monalisa Kurniawan http://linkedin.com/in/angelamonalisa (Nana) +62 822 2138 2485

mrfrase3 commented 2 years ago

Hey, sorry I didn't get back to you on this one.

If you can take a look at your console logs, it'll tell me more about the issue.

here's a video on how to do it

mwb9aa commented 2 years ago

Unfortunately, these are student chromebooks, and our district IT has disabled developer tools, including the console log. Some students worked, and some didn't. Class ended before I had a chance to test if the issue could be related to the caching old/bad programming code/different projects, etc.

mwb9aa commented 2 years ago

I just tried my computer with an Elegoo v. 4.0 robot and software I downloaded from their website. I'm getting a 413 error, which is supposed to be the code is larger than the server can handle.

http://69.195.111.207/tutorial-download/?t=RobotCarV4.0

duino.app-1661973222429.log

EDIT: Please note, I am not uploading the entire Elegoo zip file. I am using obstacle code in the tutorial folder, and am using the code for the chip that I have TBxxxx.

mrfrase3 commented 2 years ago

A simple increase in the request size limit will do the trick.

The default was 100kB, while the ArduinoJson-v6.11.1.h file was 176kB alone, it should probably be increased anyway, 100kB is a bit useless...

Give it a go (in like 30 min when it's deployed) and let me know.

mwb9aa commented 2 years ago

I tried yesterday, and the 413 error is gone. Thanks for your help.