Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

It seems that Desired Properties doesn't work #660

Closed
Warlib1975 opened this issue Nov 7, 2018 · 3 comments
Closed

It seems that Desired Properties doesn't work #660

Warlib1975 opened this issue Nov 7, 2018 · 3 comments

Comments

@Warlib1975
Copy link

Warlib1975 commented Nov 7, 2018

Hello,

when I updated properties (https://github.com/Azure/iot-edge-v1/tree/master/v2/samples/azureiotedge-simulated-temperature-sensor#desired-properties-support-new) in Module Identity Twin at the Azure Portal nothing happened for tempSensor.

I even did iotedge restart tempSensor - nothing happened. At the example I had changed in Module Identity Twin JSON properties -> desired: SendInterval from 5 to 7:

"properties": {
"desired": {
"SendData": true,
"SendInterval": 7,

Nothing changes in interval.

PS C:\WINDOWS\system32> docker ps -a --format "table {{.ID}}\t{{.Names}}\t{{.Image}}"
CONTAINER ID NAMES IMAGE
7ef16ac14a76 edgeHub mcr.microsoft.com/azureiotedge-hub:1.0
63425d12572d tempSensor mcr.microsoft.com/azureiotedge-simulated-temperature-sensor:1.0
838cd1e532a4 edgeAgent mcr.microsoft.com/azureiotedge-agent:1.0

PS C:\WINDOWS\system32> docker --version
Docker version 18.06.1-ce, build e68fc7a

PS C:\WINDOWS\system32> iotedge --version
iotedge 1.0.4 (2835ac47fbb944ba628a5cfe812ff394768842e0)

Thank you.

@damonbarry
Copy link
Member

Hi @Warlib1975. All IoT Edge v2 work is now happening over at https://github.com/Azure/iotedge; this v2 sample in the v1 repo isn't actively maintained. I'll work on getting it removed to avoid confusion.

To confirm that a custom module can receive desired property updates, please follow the tutorial here. If that doesn't work as expected, you can file issues directly on that tutorial page.

Thanks!

@damonbarry
Copy link
Member

2f97092 Removed v2 samples folder

@Warlib1975
Copy link
Author

Warlib1975 commented Dec 11, 2018

Thank you. V2 work perfect.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants