I just got a Freematics One+ unit earlier this week. Everything is a fresh install with latest files downloaded from https://github.com/stanleyhuangyc/Freematics
I am trying to follow the quick start guide and upload the datalogger sketch but am getting the same error every time:
Build Target: ESP32 (MCU: esp32)
Library path: C:\Users\Bob\Documents\Freematics\Software\Freematics-master\Freematics-master/libraries/FreematicsONE
Library path: hardware/arduino/esp32/libraries/Wire/src
Library path: hardware/arduino/esp32/libraries/SPI/src
Library path: hardware/arduino/esp32/libraries/WiFi/src
Referenced libraries: [FreematicsONE] [Wire] [SPI] [WiFi]
[Sketch]
Compiling datalogger.ino.cpp...
Error compiling source code.
The status bar reads:
"Uploading not successful (Error code: -4)
This happens with any sketch downloaded from the repository.
I have already tried using the libraries from the V4 folder
I believe I am connected, since I am able to upload a simple blinking light sketch using the Arduino Builder.
What is causing this to happen, and how do I fix it?
Freematics One+ Unable to Upload (Error code: -4)
-
- Posts: 4
- Joined: Wed Oct 04, 2017 10:56 am
Re: Freematics One+ Unable to Upload (Error code: -4)
You should use the code in firmware_v5.
-
- Posts: 4
- Joined: Wed Oct 04, 2017 10:56 am
Re: Freematics One+ Unable to Upload (Error code: -4)
I've tried the datalogger code from both folders. Still no luck
Re: Freematics One+ Unable to Upload (Error code: -4)
If for some reason you can't work with Arduino Builder, you can still try PlatformIO or Arduino IDE.
-
- Posts: 4
- Joined: Wed Oct 04, 2017 10:56 am
Re: Freematics One+ Unable to Upload (Error code: -4)
Yeah, I tried PlatformIO and everything seems to be working well with that. Thanks!!!!