Trying to harness the v2 library format is a bit elusive.
If I follow this structure: particle/libraries
:
- axtls/
- src/
- examples/
- testClient/
$ cat library.properties
# Fill in information about your library then remove # from the start of lines
# https://docs.particle.io/guide/tools-and-features/libraries/#library-properties-fields
name=axtls
version=0.0.1
author=Rob Cermak
license=mixed, Creative Commons 4 if not specified
sentence=axTLS library
paragraph=A port of axTLS from http://axtls.sourceforge.net/
url=https://github.com/jr3cermak/particle/libraries/axtls
repository=https://github.com/jr3cermak/particle.git
testClient has:
testClient:
total 32
-rw-r--r-- 1 cermak staff 204 Jun 24 13:39 Private.h
-rw-r--r-- 1 cermak staff 3690 Jun 27 21:37 axtls_config.h
-rw-r--r-- 1 cermak staff 5033 Jun 27 14:00 testClient.ino
What I was hoping the compile would pull everything from the testClient/
and src/
directory. I can’t achieve this using any of the following scenarios unless I specify everything on the command line.
Within testClient
, result #1 is:
$ particle compile photon
Compiling code for photon
Including:
axtls_config.h
Private.h
testClient.ino
attempting to compile firmware
Compile failed. Exiting.
Result #2, gets closer, but misses the two local files:
$ particle compile photon testClient.ino
Compiling code for photon
Including:
testClient.ino
../../library.properties
../../src/aes.cpp
../../src/axtls.cpp
../../src/asn1.cpp
../../src/axtls.h
../../src/bigint.cpp
../../src/bigint.h
../../src/bigint_impl.h
../../src/byteorder.h
../../src/cert.h
../../src/crypto.h
../../src/crypto_misc.cpp
../../src/crypto_misc.h
../../src/debugging.cpp
../../src/debugging.h
../../src/gen_cert.cpp
../../src/hmac.cpp
../../src/loader.cpp
../../src/md5.cpp
../../src/openssl.cpp
../../src/os_int.h
../../src/os_port.cpp
../../src/os_port.h
../../src/p12.cpp
../../src/private_key.h
../../src/rc4.cpp
../../src/rsa.cpp
../../src/sha1.cpp
../../src/sha256.cpp
../../src/sha384.cpp
../../src/sha512.cpp
../../src/ssl.h
../../src/tls1.h
../../src/tls1_clnt.cpp
../../src/tls1_svr.cpp
../../src/tls1.cpp
../../src/version.h
../../src/x509.cpp
attempting to compile firmware
Try #3:
$ particle compile photon testClient.ino Private.h axtls_config.h
Compiling code for photon
Including:
testClient.ino
Private.h
axtls_config.h
attempting to compile firmware
Any hints on how to solve this? Need any more info?
$ particle --version
1.23.0