by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Dec 17 2019 02:06
    boxofrox opened #3309
  • Dec 16 2019 20:35
    Bascy opened #3308
  • Dec 16 2019 18:56
    irukard commented #3078
  • Dec 16 2019 15:53
    cychai1995 edited #3307
  • Dec 16 2019 15:53
    cychai1995 opened #3307
  • Dec 16 2019 04:57
    lackdaz commented #3286
  • Dec 16 2019 04:55
    lackdaz commented #3286
  • Dec 16 2019 04:55
    lackdaz commented #3286
  • Dec 16 2019 04:49
    lackdaz commented #3286
  • Dec 16 2019 04:48
    lackdaz commented #3286
  • Dec 16 2019 04:47
    lackdaz commented #3286
  • Dec 15 2019 21:21
    mlewand opened #3306
  • Dec 14 2019 15:23
    hmaarrfk opened #3305
  • Dec 14 2019 15:16
    hmaarrfk commented #3296
  • Dec 13 2019 19:41
    Misterion96 edited #3303
  • Dec 13 2019 19:41
    Misterion96 edited #3303
  • Dec 13 2019 19:41
    Misterion96 edited #3303
  • Dec 13 2019 19:41
    Misterion96 edited #3303
  • Dec 13 2019 19:28
    HeathPetersen opened #3304
  • Dec 13 2019 17:53
    burnsed commented #3120
Mikk Kiilaspää
@Mikk36
image.png
image.png
Hmm, ok, static stuff is for classes
ACBIAS
@pak-man
hi all, I am on my very satisfying journey with platformio. So far so good. I am using the buildfs target to transform a data folder containing all CSS/HTML/JS files for my embedded ESP8266 platform into a SPIFFS image. I´d like to use a custom shell script to prepare those files (including, mergning, minifying, compressing), how could i tell platformio to execute this script before building the SPIFFS image ?
ACBIAS
@pak-man

SOLVED. here is how i did:
I added extra_scripts = prepost.py to my [env:####] in platformio.ini under my project directory.
Then I wrote this simple Python script that calls up my shell script for the target uploadfs, prior to the upload:
``
Import("env")
import subprocess

def before_upload(source, target, env):
subprocess.call("./prep_spiffs.sh")

env.AddPreAction("uploadfs", before_upload)
``

Dmitry Kireev
@kireevco
hey all. Does anyone know if there is any obvious issue with WiFiClientSecure and esp32 platform on platformio? Thanks
[E][WiFiClient.cpp:121] setSocketOption(): 1006 : 9
[V][ssl_client.cpp:48] start_ssl_client(): Free heap before TLS 151368
[V][ssl_client.cpp:50] start_ssl_client(): Starting socket
[V][ssl_client.cpp:86] start_ssl_client(): Seeding the random number generator
[V][ssl_client.cpp:95] start_ssl_client(): Setting up the SSL/TLS structure...
[V][ssl_client.cpp:108] start_ssl_client(): Loading CA cert
[V][ssl_client.cpp:126] start_ssl_client(): Loading CRT cert
[V][ssl_client.cpp:133] start_ssl_client(): Loading private key
[V][ssl_client.cpp:143] start_ssl_client(): Setting hostname for TLS session...
[V][ssl_client.cpp:158] start_ssl_client(): Performing the SSL/TLS handshake...
[E][ssl_client.cpp:28] handle_error(): X509 - Certificate verification failed, e.g. CRL, CA or signature check failed
[E][ssl_client.cpp:30] handle_error(): MbedTLS message code: -9984
[E][WiFiClientSecure.cpp:108] connect(): lwip_connect_r: 11
[V][ssl_client.cpp:209] stop_ssl_socket(): Cleaning SSL connection.
checked certs, they all seem to match, in right places, etc.
Dmitry Kireev
@kireevco
also, how do i know which esp32 sdk is used on the platform side?
Dmitry Kireev
@kireevco
(IE what is the revision/release of this repo https://github.com/espressif/arduino-esp32, so i can track bugs/regressions)
ah, according to the doc it’s always latest version
Robert Ely
@robertely
This isn't super on topic but i thought this may be a good place to ask. Does anyone know of a good community to chat about stm32 development? I'm just getting started with arm development in general.
Platformio was insanely easy to setup for this. It's my first experience with it.
Stavros Korokithakis
@skorokithakis
hey everyone
does anyone have a .travis.yml file for a library?
i have a library (the files are in the root of the git repo) and the examples are farther down, in subdirectories, and i can't get the command for platformio ci to build this
oh never mind, got it, it needed -l .
Redferne Bellini
@Redferne
@ivankravets Who do I need to kiss to get Debug access in PIO :smirk:
Walter E. Gunter, Jr.
@wegunterjr_gitlab
i was pointed in the direction of using custom partition tables (arduino espressif32), but i am still getting the check saying the program size is smaller than the allocated.... i
i think i only need to add the partition file to platformio project, right? don't need to mess with the boards json file?
Bert Melis
@bertmelis
Is it possible to use a fork of the esp32 arduino framework instead of the original repo?
or use a locally installed platform? (I've cloned the esp32 arduino platform to my user directory)
Ivan Kravets
@ivankravets
Bert Melis
@bertmelis
thanks. so it is possible without major (actually, not even minor) hacks. Awesome! And if I understand correctly, I can also setup multiple environments in platformio.ini so I can still test against the official repo. Cool!
Walter E. Gunter, Jr.
@wegunterjr_gitlab
i have a question about using esp idf with platformIO...
Xose Pérez
@xoseperez
@ivankravets I moved a library from Bitbucket to Github. I need it to be changed in the library registry too. Library #4644 DebounceEvent. Thanks
Ivan Kravets
@ivankravets
@xoseperez done! ;)
Dmitry Kireev
@kireevco
Hi. I’m wondering if someone was able to get Amazon freertos working with esp32 and Arduino framework?
Xose Pérez
@xoseperez
@ivankravets thank you!
Dmitry Kireev
@kireevco
Is there a place where I can see how platform.io is partitioning adruino-esp32 flash? THanks
Ivan Kravets
@ivankravets
It's better to use https://community.platformio.org, here is low activity :(
Frank Rosquin
@cnf
Hi, platformio won't respect my git.path settings in vscode, is this expected?
Mike Dunston
@atanisoft
Mike Dunston
@atanisoft
@ivankravets I found a solution and submitted a PR, its not pretty but it does work
nardev
@nardev
Anyone here???
Mike Dunston
@atanisoft
Most people use the community forums it seems
nardev
@nardev
yea...
Viktr
@BbIKTOP
Hi there
can anyone help?
Have upload_port = /dev/cu.wchusbser
and monitor_port = /dev/cu.wchusbser
and monitor_port wildcard is not working

Executing task in folder Test: platformio device monitor <

could not open port '//dev/cu.wchusbser': [Errno 2] could not open port //dev/cu.wchusbser: [Errno 2] No such file or directory: '//dev/cu.wchusbser*'
The terminal process terminated with exit code: 1

here's the ini env:esp12e]
platform = espressif8266
board = esp12e
framework = arduino
upload_port = /dev/cu.wchusbser
upload_speed = 921600
monitor_speed = 115200
monitor_port = /dev/cu.wchusbser
Tomasz Ścisłowicz
@toomasz
Hello!
How to change C++ syntax coloring to be more like visual studio:
obraz.png
But I want it to be like:
obraz.png
Viktr
@BbIKTOP
is it vsc?