Comments (4)
Repro:
- I followed steps to create an v1.0 image using ESP-IDF and flashed my device. Before doing anything else, I also created an ADU update for this image.
- I then created a v1.1 image and also created an ADU update for this.
- I imported both v1.0 and v1.1 to ADU
- ADU tells me the latest update for that device is v1.1, as expected, and I deployed that to the device. The device successful reports v1.1 and ADU also says it was successful.
- Go to ADU and delete v1.1 update
- ADU will eventually show that the latest update should be v1.0, and let you deploy it. Create a new deployment.
At this point, the device is stuck. ADU reports the update is available, but never says it is in progress. I see no new messages generated on the console for the device. If I look at the device twin, it says the connection state is "disconnected".
Following our in-person debugging, I pressed the reset button on the device. When the device reset, it started to pick up the v1.0 update, and at that point everything proceeded as expected (console reports v1.0 installed, and ADU says it is installed). As far as I can tell, it looks right at this point, and there is a bug requiring me to reboot the device.
FWIW, you guys noticed this in my console log after the device was reset, that seems like it might be a related issue?
E (195671) AZ IOT: az_iot_adu_client_get_agent_state_payload failed: 0x80010002
E (195671) AZ IOT: [ADU] Failed sending agent state.
from iot-middleware-freertos-samples.
I have a strong suspicion it is because the sample is receiving the following in the desired properties:
"desired": {
"deviceUpdate": {
"service": {
"workflow": {
"action": 255,
"id": "nodeployment"
}
},
"__t": "c"
},
"$version": 4
}
Deleting an update in the portal causes this. It was discussed previously that when an update is deleted in the portal, ADU should not write "nodeployment", it should write the id of the deleted update.
from iot-middleware-freertos-samples.
But in any case, our code should handle that, so we need to fix it too.
from iot-middleware-freertos-samples.
The root of the problem comes with this payload being parsed
{
"service": {
"workflow": {
"action": 255,
"id": "nodeployment"
}
},
"__t": "c"
}
And the problematic code is here:
It should not get to line 312 as there is no update manifest.
We should maybe check the action or the id for nodeployment
.
from iot-middleware-freertos-samples.
Related Issues (20)
- Getting component not ADU while trying the sample code snippets in a custom application. HOT 4
- Crypto.h header file causes project not to build when enabling BLE MESH due to duplicate crypto.h file HOT 2
- Add config directories to code style script
- Timeout HOT 2
- Windows Sample hangs HOT 1
- ullGetUnixTime() does not return an accurate Unix epoch in ST b-l475e-iot01a demo HOT 3
- Error calling AzureIoTHubClient_SendPropertiesReported HOT 19
- Update the Windows "Find UART" instructions everywhere HOT 1
- PnP crashes after 64 minutes HOT 19
- CMake configuration/build error for PC Simulation (windows) HOT 1
- Cortex-Debug for NXP 1060 should use "runToMain": true
- ADU groups doesnt appear in Groups and Deployments under Update section HOT 8
- FOTA with the ESP32 Documentation Inquiry HOT 11
- Potential stack corruption in sockets_wrapper_lwip.c HOT 2
- Can anyone help to use vscode to build example HOT 2
- ESP-TLS : Failed to open new connection HOT 5
- How to connect more than 1 module? HOT 1
- SNTP Server time sync event messes up with the TLS receive function
- How to receive desired properties from IoT hub from device twin HOT 4
- Wrong version of CMAKE specified HOT 1
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 iot-middleware-freertos-samples.