Updated code for Freematics ONE+ and compile errors

User feedbacks of the latest ESP32 based Freematics ONE+
ehsan.moradi
Posts: 6
Joined: Wed Jan 03, 2018 8:41 am

Updated code for Freematics ONE+ and compile errors

Postby ehsan.moradi » Sat Mar 17, 2018 3:31 pm

Hi ...

I recently downloaded the newest version of the code from github. When I try to compile and upload the code to the device, I'm getting this error:
"error: 'i2c_ack_type_t' was not declared in this scope"

Does anyone know what is the problem?
I had no problem with compiling and uploading previous versions of code (in ATOM environment using platformio-ide).

virgilio
Posts: 6
Joined: Fri Feb 23, 2018 11:29 pm

Re: Updated code for Freematics ONE+ and compile errors

Postby virgilio » Tue Mar 27, 2018 12:12 am

Me too,
I have it under /Users/<username>/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/driver/driver/i2c.h
and it seemed that the build process was not taking it into consideration

I tried to add
lib_extra_dirs = ../../libraries, /Users/virgilio/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/driver/

but I also found that, in platformio, under libraries there was an update for the ESP32 firmware

after updating it compiles
also lib_etra_dirs seem to be not needed

I don't know if this helps, if you find a reason for this behaviour please share

Virgilio


Return to “Freematics ONE+”

Who is online

Users browsing this forum: No registered users and 2 guests