ScaredyCat,

Compiling the same code, same libs, same esp32, same version of esp32 arduino core under Arduino and Platformio giving me different results.

Arduino, pushed OTA and the SHT31 gives expected values 22 degrees C, humidity 53.14%.

Platformio, pushed OTA and the SHT31 tell me the temperature is 130 degrees C, humidity 100%

This could get interesting.

tobozo,
@tobozo@mastodon.social avatar

@ScaredyCat what does the platformio.ini contents look like?

[edit] and how does it compare to the FQBN in arduino IDE? (i.e. screenshot of the tools menu)

ScaredyCat,

@tobozo I'll have to follow up later when I'm in front of that machine.

ScaredyCat,

@tobozo It's very basic:

[env:esp32dev]
platform = espressif32
board = esp32dev
framework = arduino
upload_protocol = espota
upload_port = 192.168.125.66
lib_deps =
knolleary/PubSubClient@^2.8

I have the SHT31 lib I used for the Arduino IDE stored in the lib directory of the project (which is why no dep for it is listed).

  • All
  • Subscribed
  • Moderated
  • Favorites
  • esp32
  • DreamBathrooms
  • mdbf
  • tacticalgear
  • magazineikmin
  • thenastyranch
  • rosin
  • everett
  • Youngstown
  • khanakhh
  • slotface
  • ngwrru68w68
  • kavyap
  • cisconetworking
  • InstantRegret
  • megavids
  • osvaldo12
  • GTA5RPClips
  • ethstaker
  • tester
  • Durango
  • normalnudes
  • anitta
  • modclub
  • cubers
  • Leos
  • provamag3
  • JUstTest
  • lostlight
  • All magazines