🎁📬❄️📦Adafruit Holiday Shipping Deadlines 2019: Please place all UPS 2 Day orders by 11am Monday, December 16 📦❄️📬🎁
0

Adafruitio_15_temp_humidity not compiling
Moderators: adafruit_support_bill, adafruit

Forum rules
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.
Please be positive and constructive with your questions and comments.

Adafruitio_15_temp_humidity not compiling

by jchintall on Wed Nov 13, 2019 3:21 pm

Hello,

Attached is the error message which occurs during to upload the sketch.
Code: Select all | TOGGLE FULL SIZE
Arduino: 1.8.9 (Windows 8.1), Board: "Adafruit Feather HUZZAH ESP8266, 80 MHz, Flash, Disabled (new can abort), All SSL ciphers (most compatible), 4MB (FS:none OTA:~1019KB), v2 Lower Memory, Disabled, None, Only Sketch, 115200"

Build options changed, rebuilding all
fatal: not a git repository (or any of the parent directories): .git
Executable segment sizes:


IROM   : 362560          - code in flash         (default or ICACHE_FLASH_ATTR)


IRAM   : 27140   / 32768 - code in IRAM          (ICACHE_RAM_ATTR, ISRs...)


DATA   : 1252  )         - initialized variables (global, static) in RAM/HEAP


RODATA : 2732  ) / 81920 - constants             (global, static) in RAM/HEAP


BSS    : 25368 )         - zeroed variables      (global, static) in RAM/HEAP


Sketch uses 393684 bytes (37%) of program storage space. Maximum is 1044464 bytes.
Global variables use 29352 bytes (35%) of dynamic memory, leaving 52568 bytes for local variables. Maximum is 81920 bytes.
esptool.py v2.7
Serial port COM20
Traceback (most recent call last):
  File "C:\Users\john_000\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.6.0/tools/upload.py", line 25, in <module>
    esptool.main(fakeargs)
  File "C:/Users/john_000/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/2.6.0/tools/esptool\esptool.py", line 2840, in main
    esp = chip_class(each_port, initial_baud, args.trace)
  File "C:/Users/john_000/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/2.6.0/tools/esptool\esptool.py", line 237, in __init__
    self._port = serial.serial_for_url(port)
  File "C:/Users/john_000/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/2.6.0/tools/pyserial\serial\__init__.py", line 88, in serial_for_url
    instance.open()
  File "C:/Users/john_000/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/2.6.0/tools/pyserial\serial\serialwin32.py", line 62, in open
    raise SerialException("could not open port {!r}: {!r}".format(self.portstr, ctypes.WinError()))
serial.serialutil.SerialException: could not open port 'COM20': FileNotFoundError(2, 'The system cannot find the file specified.', None, 2)
serial.serialutil.SerialException: could not open port 'COM20': FileNotFoundError(2, 'The system cannot find the file specified.', None, 2)

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.


adafruitio_15_temp_humidity error message.txt
(2.39 KiB) Downloaded 6 times


Please let me know what needs to be done to allow this sketch to compile correctly.
Thank you for your help!

John Chintall

jchintall
 
Posts: 4
Joined: Mon May 13, 2019 7:26 pm

Re: Adafruitio_15_temp_humidity not compiling

by franklin97355 on Wed Nov 13, 2019 4:01 pm

Start off by setting the verbose option in the IDE preferences and capture the output. Then post here between CODE tags. I just compiled that code and it compiled successfully. Ma ke sure you have the library installed correctly and you may have to remove the arduino15 directory if all else fails.

franklin97355
 
Posts: 21362
Joined: Mon Apr 21, 2008 2:33 pm
Location: Lacomb, OR.

Re: Adafruitio_15_temp_humidity not compiling

by jchintall on Wed Nov 13, 2019 5:36 pm

Hello,

Thanks for the quick response! I change options in the preference section. Errors still occurred.

adafruitio_15_temp_humidity error message-1.txt
(168.19 KiB) Downloaded 6 times

jchintall
 
Posts: 4
Joined: Mon May 13, 2019 7:26 pm

Re: Adafruitio_15_temp_humidity not compiling

by brubell on Thu Nov 14, 2019 10:36 am

jchintall wrote:Hello,

Thanks for the quick response! I change options in the preference section. Errors still occurred.

adafruitio_15_temp_humidity error message-1.txt


This doesn't look like a compilation error, it looks like an error is occurring while uploading to the ESP8266

raise SerialException("could not open port {!r}: {!r}".format(self.portstr, ctypes.WinError()))
serial.serialutil.SerialException: could not open port 'COM20': FileNotFoundError(2, 'The system cannot find the file specified.', None, 2)


jchintal,

First, does the board show up under Arduino->Tools->Port?

Then, could you re-install the ESP8266 board support package using the Arduino IDE's board manager?

- brent r.

brubell
 
Posts: 649
Joined: Fri Jul 17, 2015 10:33 pm

Re: Adafruitio_15_temp_humidity not compiling

by jchintall on Thu Nov 14, 2019 2:48 pm

Hi Brent R,

Thanks for the info. I installed a new Arduino IDE 1.8.10. Installed all the required libraries following:
1. "Using Arduino IDE - https://learn.adafruit.com/adafruit-fea ... rduino-ide
2. "Adafruit IO Basics: Temperature and Humidity" -https://learn.adafruit.com/adafruit-io-basics-temperature-and-humidity/arduino-wiring

Then complete the tutorial as described in Adafruit IO Basics: Temperature and Humidity.
Uploaded to ESP8266; opened the Serial Monitor which provided the sample listing A below.
No data is reported in the AIO dashboard.; however, the data is captured according to the monitor page built into the AIO is listed in sample listing B, shown below sample A.
No errors are reported on the Monitor screen, but no data is recorded on the dashboard.

Please provide a resolution to this lack of data captured on the dashboard.
Thank you for your help.
John
Sample Listing A
13:20:10.081 -> humidity: nan%
13:20:15.293 -> celsius: nanC
13:20:15.293 -> fahrenheit: nanF
13:20:15.326 -> humidity: nan%
13:20:20.531 -> celsius: nanC
13:20:20.531 -> fahrenheit: nanF
13:20:20.598 -> humidity: nan%
13:20:25.800 -> celsius: nanC
13:20:25.800 -> fahrenheit: nanF
13:20:25.835 -> humidity: nan%
13:20:31.041 -> celsius: nanC
13:20:31.041 -> fahrenheit: nanF
13:20:31.074 -> humidity: nan%


Sample Listing B
2019/11/14 1:25pm humidity nan
2019/11/14 1:25pm temperature nan
2019/11/14 1:25pm humidity nan
2019/11/14 1:25pm temperature nan

jchintall
 
Posts: 4
Joined: Mon May 13, 2019 7:26 pm

Re: Adafruitio_15_temp_humidity not compiling

by jchintall on Fri Nov 15, 2019 11:37 am

The DHT 22 was reset and data was recorded onto AIO dashboard. Thanks for all help.

jchintall
 
Posts: 4
Joined: Mon May 13, 2019 7:26 pm

Please be positive and constructive with your questions and comments.