Author Topic: How to use Oak with platformio?  (Read 2944 times)

Mschicker

  • Newbie
  • *
  • Posts: 2
How to use Oak with platformio?
« on: April 25, 2017, 03:24:02 am »
How is it possible to integrate the Oak with platform.io ?

Kind regards,
Markus

rkinnett

  • Newbie
  • *
  • Posts: 7
Re: How to use Oak with platformio?
« Reply #1 on: June 18, 2017, 02:19:48 pm »
Bump!

Some progress was made by github user boneskull back in January, but that thread ends before he got the toolchain working, as far as I can tell.  If I understand correctly, I think he was trying to coerce other esp8266 firmware upload tools that are already integrated into platformio to work for the Oak, rather than trying to use the tools that digistump provides for uploading sketches from the Arduino IDE through the Particle cloud.  I'm 100% clueless how Arduino sends firmware to the oak behind the scenes but I'm starting to look into it and see what it would take to define a new platform for this in platformio.  Would love some help if anyone comes across this...

EDIT:
On re-reading the github thread linked above, it looks like he actually did get it working through Particle OTA.

-Ryan
« Last Edit: June 18, 2017, 03:28:21 pm by rkinnett »

PeterF

  • Hero Member
  • *****
  • Posts: 881
Re: How to use Oak with platformio?
« Reply #2 on: June 18, 2017, 11:38:26 pm »
It looks like it's a yes and no as far as working. He got particle upload working, but he b0rked the Oak in the process as he flashed it with an ESP8266 core instead of a Oak Core and it wasn't happy!  :o  ;D

Unless it is possible to identify where Erik originally branched off the ESP8266 core, so we can identify the unique Oak/Particle stuff, and then hopefully transplant that into the current core, it probably won't happen. However, with his recent post about wanting to provide a non-particle solution that can be completely managed, moving back to the native ESP8266 core will become very easy, and then it's just a mater of working out how to provide the OTA upload stuff through PlatformIO. So really it's a watch this space game at the moment, as things are changing, so there really isn't any point working on a migration.