You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/iot-edge/tutorial-c-module-windows.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -132,7 +132,7 @@ The default module code receives messages on an input queue and passes them alon
132
132
)
133
133
```
134
134
135
-
3. Add **my_parson** to the list of libraries in the **target_link_libraries** section of the CMakeLists.txt file.
135
+
3. Add `my_parson` to the list of libraries in the **target_link_libraries** section of the CMakeLists.txt file.
136
136
137
137
4. Save the **CMakeLists.txt** file.
138
138
@@ -172,6 +172,14 @@ The default module code receives messages on an input queue and passes them alon
172
172
4. Find the `InputQueue1Callback` function, and replace the whole function with the following code. This function implements the actual messaging filter. When a message is received, it checks whether the reported temperature exceeds the threshold. If yes, then it forwards the message through its output queue. If not, then it ignores the message.
5. Add a `moduleTwinCallback` function. This method receives updates on the desired properties from the module twin, and updates the **temperatureThreshold** variable to match. All modules have their own module twin, which lets you configure the code running inside a module directly from the cloud.
Copy file name to clipboardExpand all lines: articles/iot-edge/tutorial-c-module.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -112,7 +112,7 @@ The default module code receives messages on an input queue and passes them alon
112
112
)
113
113
```
114
114
115
-
3. Add **my_parson** to the list of libraries in the **target_link_libraries** function of CMakeLists.txt.
115
+
3. Add `my_parson` to the list of libraries in the **target_link_libraries** function of CMakeLists.txt.
116
116
117
117
4. Save the **CMakeLists.txt** file.
118
118
@@ -152,6 +152,14 @@ The default module code receives messages on an input queue and passes them alon
152
152
1. Replace the entire `InputQueue1Callback` function with the following code. This function implements the actual messaging filter. When a message is received, it checks whether the reported temperature exceeds the threshold. If yes, then it forwards the message through its output queue. If not, then it ignores the message.
1. Add a `moduleTwinCallback` function. This method receives updates on the desired properties from the module twin, and updates the **temperatureThreshold** variable to match. All modules have their own module twin, which lets you configure the code running inside a module directly from the cloud.
0 commit comments