An open source ecosystem for IoT development. Cross-platform code builder and library manager. Continuous and IDE integration. Arduino and MBED compatible. Ready for Cloud compiling.
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)
``
[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.