These are chat archives for esp8266/Arduino

18th
Aug 2016
Martin Ayotte
@martinayotte
Aug 18 2016 00:46
hello
Martin Ayotte
@martinayotte
Aug 18 2016 00:54
@igrr , @me-no-dev , what do you think about that post ? http://www.esp8266.com/viewtopic.php?f=32&t=11289&p=53179#p53179
Ivan Grokhotkov
@igrr
Aug 18 2016 02:58
I think that that code is out of date. It seems that bbx10node is using 2.3.0, not the latest version. In the latest version there was an optimisation which sends data from stream as fast as possible.
(but It also leads to the issue with SD library you have mentioned earlier)
Ivan Kravets
@ivankravets
Aug 18 2016 09:36

@skorokithakis we support dozens different development platforms and frameworks. Please sorry but we can't support each development build of supported software. PlatformIO is open-source and build script for Arduino Framework for ESP8266 is located in platform-espressif repository. You can copy/clone/modify according stage version. PlatformIO installs development platforms by default to ~/.platformio/platforms folder.

@igrr @me-no-dev should we support development/stage version in PlatformIO? How does PlatformIO build Arduino ESP8266 based project? It uses

If you modify platform.txt, then you need to update files above.

Nevertheless, I don't force to do that because I don't know how many people use "staging" version with PlatformIO. In any case, it could significantly save time for integration between 2 projects (this & PlatformIO). I can make PR to .travis.yml with platformio ci.

Stavros Korokithakis
@skorokithakis
Aug 18 2016 09:42
@ivankravets yeah, i was just asking if it would be easy for me to change the platform files. i checked out the arduino repo, but the build failed because of different flags, and i didn't know where the flags are stored (but your comment answers that)
Ivan Grokhotkov
@igrr
Aug 18 2016 09:43
Adding platformio ci to our repo might cause a deadlock, where we won't be able to make a change to platform.txt because CI would be failing, and at the same time changes to build scripts in platformio would also case build fails.
Me No Dev
@me-no-dev
Aug 18 2016 09:44
@ivankravets I think supporting only stable is fine and given that we rarely change platform.txt, it should work just fine with github version most of the time
Stavros Korokithakis
@skorokithakis
Aug 18 2016 09:46
would it be easy for me to write a script to generate the two files from platform.txt?
Ivan Grokhotkov
@igrr
Aug 18 2016 09:47
this was done by @plerup for makeEspArduino, which now pulls all the flags from platform.txt, so i think it should be possible for platform.io as well
i agree that supporting stable version is a good option. i suppose people who use platformio can probably handle updating compiler options line if they have that issue :)
maybe we can work out a reliable solution for the esp32 as well...
Ivan Grokhotkov
@igrr
Aug 18 2016 09:52
as the number of toolchains and versions grows, maintenance can get harder, so putting some automatic stuff in place may be an option
Stavros Korokithakis
@skorokithakis
Aug 18 2016 10:02
@igrr when is the esp32 coming out :(
Ivan Grokhotkov
@igrr
Aug 18 2016 10:04
depends on what you call "coming out"? modules appear on ebay?
Luc
@luc-github
Aug 18 2016 10:46
I understood mass production is in september for ESP32, no ?
I see some ESP32 on aliexpress.com but not available for sell
Ivan Kravets
@ivankravets
Aug 18 2016 11:02
@igrr @me-no-dev I totally agree with you. Next time when someone reports issue related to PlatformIO, please forward to https://community.platformio.org . It will save your time.
Ivan Grokhotkov
@igrr
Aug 18 2016 11:03
:+1:
Stavros Korokithakis
@skorokithakis
Aug 18 2016 11:12
@igrr yep, ebay/hobbyist availability
Ivan Kravets
@ivankravets
Aug 18 2016 11:21

@skorokithakis @igrr

which now pulls all the flags from platform.txt, so i think it should be possible for platform.io as well

There a lot of options:

  • Custom Build options per build environment
  • Extra script that allows you to take control of PlatformIO Build System: changes flags, commands, uploaders, etc.

@skorokithakis please open an issue here and we will add support for parsing platform.txt on-the-fly.

We are working on better integration with 3-rd party builders and library manifests. PlatformIO 3.0 is totally refactored PlatformIO. The big announce is full support of Arduino's library.properties manifest and ARM mbed module.json. It means that you can compile heterogeneous project that depends on different libraries using native PlatformIO Build System. It works in 2-5 times faster then other builders mentioned above. The new library manager supports Semantic Versioning and project dependencies.

PlatformIO Library Registry also is refactored. You can submit to it different 3-rd party libraries (not only PlatformIO-based on library.json). Now it contains hundreds libraries with PlatformIO library.json, Arduino library.properties and ARM mbed/yotta module.json manifests.

Let's make unique and big open source ecosystem for embedded development :blush:

Stavros Korokithakis
@skorokithakis
Aug 18 2016 11:28
@ivankravets awesome, thanks!
@ivankravets also, while i open the other issue, can you have a look at my lib here? platformio/platformio-libmirror#75
platformio/platformio#750
Ivan Kravets
@ivankravets
Aug 18 2016 11:35
@skorokithakis you can register your library using platformio lib register command.
Stavros Korokithakis
@skorokithakis
Aug 18 2016 11:38
oh, done, thank you
@ivankravets is the platformio-libmirror issue tracker obsolete then?
the platformio website's "plus" button still redirects to the issue tracker
Ivan Kravets
@ivankravets
Aug 18 2016 12:05

is the platformio-libmirror issue tracker obsolete then?

No, we need it. Sometimes there is library that doesn't contain any manifests. In this case, we create it manually and make PR to repository owner

Stavros Korokithakis
@skorokithakis
Aug 18 2016 12:06
ah, fantastic, thank you
@ivankravets i love your libs site, the way you show examples is great
Ivan Kravets
@ivankravets
Aug 18 2016 12:07

the platformio website's "plus" button still redirects to the issue tracker

I'll create separate Web-page where you will be able to submit library using browser :blush:

Stavros Korokithakis
@skorokithakis
Aug 18 2016 12:16
ah, very nice
@ivankravets how often do libs update? i made some changes, do i need to issue a new version to see them on the platformio site?
Ivan Kravets
@ivankravets
Aug 18 2016 12:19
Library Crawlers visits library manifest each 24h. However, I've just forced updating of your libary
I recommend to specify version field in Semantic Versioning format. It allows developers to depend on this library using lib_deps and semantic rules.
Vyvojar123
@Vyvojar123
Aug 18 2016 12:36
hello I want to use an Arduino Due via serial port, the computer which would be used for that is not connected to the internet and OS is Windows XP. which driver do I need ?
Stavros Korokithakis
@skorokithakis
Aug 18 2016 12:51
@ivankravets i do use semver, but the library is so new that i don't update yet. i will now, though. do you know if i can specify dependencies? for example, my library depends on softserial
@Vyvojar123 this channel is for the ESP8266, not the Arduino
although i don't know which serial driver you need for windows anyway :/
Vyvojar123
@Vyvojar123
Aug 18 2016 12:57
@skorokithakis but ESP8266 is very similar to Arduino DUE, is not it? Maybe I would use it...
Stavros Korokithakis
@skorokithakis
Aug 18 2016 12:58
hmm, i don't know, i've never used a Due
Vyvojar123
@Vyvojar123
Aug 18 2016 12:58
can I ESP8266 program the same way like Arduino in general?
Stavros Korokithakis
@skorokithakis
Aug 18 2016 12:58
yeah
Vyvojar123
@Vyvojar123
Aug 18 2016 13:07
@skorokithakis which particular model do you use ?
Ivan Kravets
@ivankravets
Aug 18 2016 13:39

@skorokithakis

do you know if i can specify dependencies? for example, my library depends on softserial

In this case you have to use PlatformIO library.json. Arduino IDE and its manifest library.properties doesn't support dependencies.

See dependencies field http://docs.platformio.org/en/latest/librarymanager/config.html#dependencies

Stavros Korokithakis
@skorokithakis
Aug 18 2016 13:39
@ivankravets thank you
Ivan Kravets
@ivankravets
Aug 18 2016 13:39
@skorokithakis is softserial built-in library?
Stavros Korokithakis
@skorokithakis
Aug 18 2016 13:40
@ivankravets i was just about to ask that
i think it's not, but i've seen conflicting information
(generic) stavros@zephyrus:~/.p/p/framework-arduinoespressif (master|✚5) 
16:40:47 $ find . -name SoftwareSerial.h
./libraries/SoftwareSerial/SoftwareSerial.h
yet, if i include it in my code, it can't find it
i will try again and see
ah, yes, it's built-in, it worked
no dependencies, then, great!
Ivan Kravets
@ivankravets
Aug 18 2016 13:42
cool
I don't know a difference
It seems that need to use built-in
Stavros Korokithakis
@skorokithakis
Aug 18 2016 13:56
yes, that's the library i downloaded, but i think the built-in softserial is better
as a developer preview...
Luc
@luc-github
Aug 18 2016 14:51
:+1:
Ivan Grokhotkov
@igrr
Aug 18 2016 15:48
It's pretty rough at the moment and not all the components have been put in place yet (mbedTLS, Bluetooth, filesystem) but we are actively working on it. And unlike previous SDKs, we will actually watch issues on GitHub and will accept pull requests.
Although for pull requests we still need a CLA which isn't finalized yet...
Luc
@luc-github
Aug 18 2016 15:51
Thanks a lot for this - I can't wait to use it :smile:
Germán Martín
@gmag11
Aug 18 2016 17:52
@igrr Now that mbedTLS is included in esp8266 SDK, is it going to be implemented in arduino framework to have secure http server?
Stavros Korokithakis
@skorokithakis
Aug 18 2016 23:48
ah, damnit, i've just realized what the problem with using a PMOS to switch power on/off is... the ESP's logic level is 3.3V, but my VCC rail is 5V, so there's not enough Vgs difference for the PMOS to be switched off
unless i'm connecting it wrong
Stavros Korokithakis
@skorokithakis
Aug 18 2016 23:55
@martinayotte is there a way to have a PMOS switch 5V with 3.3V on the gate?