Page 1 of 1

Updated code for Freematics ONE+ and compile errors

Posted: Sat Mar 17, 2018 3:31 pm
by ehsan.moradi
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).

Re: Updated code for Freematics ONE+ and compile errors

Posted: Tue Mar 27, 2018 12:12 am
by virgilio
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