Comments (2)
On further inspection of this, I can see where cbor is being included in the CMakeLists.txt in ota-for-aws-iot-embedded-sdk. When I added the submodule, I obviously ran :
$ git submodule --init --recursive
However, I can see that the tinycbor repo is not there at all! So, it's not surprising that the build was failing. I've manually pasted the repo into place and rerun the build. So either way I've mentioned works to fix the cbor error (either add it, or use the ESP-IDF managed components approach).
Next it fails whinging about:
/libs/esp-aws-iot/libraries/corePKCS11/corePKCS11/source/portable/mbedtls/core_pkcs11_mbedtls.c:275:5: error: unknown type name 'mbedtls_threading_mutex_t'
So I go and have a look around in this repo, and notice that there are a bunch of dependencies missing there too??? Including mdedtls. But that kind of makes sense since mbedtls is included as part of ESP_IDF.... Question is why isn't the mbedtls component found?
Is there some limitation to how this library should be used in order that dependencies like this one work? FWIW, I put all my 3rd party submodules into a folder (outside of any individual project) and pull them in as needed. Shouldn't CMake ensure that the reference to mbedtls is satisfied since it is clearly present in the build???
I've stripped the project down to nothing and it still shows exactly the same behaviour. I've put the esp-aws-iot library into components, and modified the root CMakeLists.txt with :
list(APPEND EXTRA_COMPONENT_DIRS
${CMAKE_CURRENT_LIST_DIR}/components/esp-aws-iot/libraries
)
It finds them ok again, but still gives the mbedtls errors...
from esp-aws-iot.
Sorry, last post on this. I found another issue which covered the mbedtls issue link. So, with that, we can close these, but I do have several suggestions to save future headaches:
- Can you add an idf_component.yaml to force the cbor component to get added in by default?
- Anyone able to explain what the mbedtls fix was? Or how it could be integrated as a default?
from esp-aws-iot.
Related Issues (20)
- The mqtt connection failed (CA-320)
- mbedtls_ssl_handshake returned -0x7780 (CA-321)
- The configured path is incorrect,what should I do (CA-322)
- When the ssl_mutual_auth routine is frequently connected: Dynamic Impl: alloc(5347 bytes) failed HOT 1
- Dumped packet issue coreMQTT library (CA-324)
- `ota_mqtt` example not working for esp32-wroom-32d (DevKitC v4) (CA-325) HOT 1
- Connection with MQTT broker failed (CA-327) HOT 4
- coreMQTT: Argument cannot be NULL: pContext=0x3ffc3dd8, pSubscriptionList=0x0 AND coreMQTT: MQTT operation failed with status MQTTBadParameter (CA-328) HOT 1
- New Releases (CA-330) HOT 1
- Fleet Provisioning build error (CA-331) HOT 5
- Any esp-aws-iot release supporting or usable with IDF v5.2.1 ? (CA-332) HOT 11
- Customize software to do OTA with cellular modem (CA-333)
- MQTT_ProcessLoop() producing 1 s Pings even with 40s KeepAlive time. (CA-334) HOT 4
- Enabling esp secure cert cause firmware unable to compile (CA-335) HOT 1
- AWS-OTA not sure about what comes in Code signing signiture field (CA-336) HOT 1
- smartDeviceConnectionDisconnectionEvent : "disconnectReason": "DUPLICATE_CLIENTID", (CA-337) HOT 4
- Ported Mqtt demo mqtt_demo_mutual_auth,but stuck at sendPacket when run MQTT_Connect (CA-338)
- AWS recovers from read error 0x004C once but not a second time (IDFGH-13081) (CA-339)
- AWS does not recover from disconnect (IDFGH-13132) (CA-340)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from esp-aws-iot.