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
> [2021-06-16T08:18:28.315Z] Cannot create directory for shared memory usage: /dev/shm/AzureFunctions
206
+
> [2021-06-16T08:18:28.316Z] System.IO.FileSystem: Access to the path '/dev/shm/AzureFunctions' is denied. Operation not permitted.
207
+
> [2021-06-16T08:18:30.361Z] No job functions found.
208
+
>```
209
+
>
210
+
> You can ignore these as long as the Functions app starts correctly and lists the running functions. As mentioned in [this question on the Microsoft Docs Q&A](https://docs.microsoft.com/answers/questions/396617/azure-functions-core-tools-error-osx-devshmazurefu.html?WT.mc_id=academic-17441-jabenn) it can be ignored.
211
+
195
212
1. Stop the Functions app by pressing `ctrl+c`.
196
213
197
214
1. Open the current folder in VS Code, either by opening VS Code, then opening this folder, or by running the following:
@@ -213,23 +230,6 @@ The Azure Functions CLI can be used to create a new Functions app.
213
230
214
231
1. Make sure the Python virtual environment is running in the VS Code terminal. Terminate it and restart it if necessary.
[2021-06-16T08:18:28.315Z] Cannot create directory for shared memory usage: /dev/shm/AzureFunctions
227
-
[2021-06-16T08:18:28.316Z] System.IO.FileSystem: Access to the path '/dev/shm/AzureFunctions' is denied. Operation not permitted.
228
-
[2021-06-16T08:18:30.361Z] No job functions found.
229
-
```
230
-
231
-
but don't worry about them as long as the Functions app starts correctly and lists the running functions. As mentioned in this question on the [Docs Q&A](https://docs.microsoft.com/answers/questions/396617/azure-functions-core-tools-error-osx-devshmazurefu.html?WT.mc_id=academic-17441-jabenn) it can be ignored.
232
-
233
233
## Create an IoT Hub event trigger
234
234
235
235
The Functions app is the shell of your serverless code. To respond to IoT hub events, you can add an IoT Hub trigger to this app. This trigger needs to connect to the stream of messages that are sent to the IoT Hub and respond to them. To get this stream of messages, your trigger needs to connect to the IoT Hubs *event hub compatible endpoint*.
Copy file name to clipboardexpand all lines: 3-transport/lessons/1-location-tracking/pi-gps-sensor.md
+4-4
Original file line number
Diff line number
Diff line change
@@ -118,24 +118,24 @@ Program the device.
118
118
serial.reset_input_buffer()
119
119
serial.flush()
120
120
121
-
def printGPSData(line):
121
+
def print_gps_data(line):
122
122
print(line.rstrip())
123
123
124
124
while True:
125
125
line = serial.readline().decode('utf-8')
126
126
127
127
while len(line) > 0:
128
-
printGPSData(line)
128
+
print_gps_data(line)
129
129
line = serial.readline().decode('utf-8')
130
130
131
131
time.sleep(1)
132
132
```
133
133
134
134
This code imports the `serial` module from the `pyserial` Pip package. It then connects to the `/dev/ttyAMA0` serial port - this is the address of the serial port that the Grove Pi Base Hat uses for its UART port. It then clears any existing data from this serial connection.
135
135
136
-
Next a functioncalled`printGPSData` is defined that prints out the line passed to it to the console.
136
+
Next a functioncalled`print_gps_data` is defined that prints out the line passed to it to the console.
137
137
138
-
Next the code loops forever, reading as many lines of text as it can from the serial port in each loop. It calls the `printGPSData`functionfor each line.
138
+
Next the code loops forever, reading as many lines of text as it can from the serial port in each loop. It calls the `print_gps_data`functionfor each line.
139
139
140
140
After all the data has been read, the loop sleeps for 1 second, then tries again.
Copy file name to clipboardexpand all lines: 3-transport/lessons/1-location-tracking/virtual-device-gps-sensor.md
+4-4
Original file line number
Diff line number
Diff line change
@@ -77,22 +77,22 @@ Program the GPS sensor app.
77
77
1. Add the following code below this to read from the serial port and print the values to the console:
78
78
79
79
```python
80
-
def printGPSData(line):
80
+
def print_gps_data(line):
81
81
print(line.rstrip())
82
82
83
83
while True:
84
84
line = serial.readline().decode('utf-8')
85
85
86
86
while len(line) > 0:
87
-
printGPSData(line)
87
+
print_gps_data(line)
88
88
line = serial.readline().decode('utf-8')
89
89
90
90
time.sleep(1)
91
91
```
92
92
93
-
A functioncalled`printGPSData` is defined that prints out the line passed to it to the console.
93
+
A functioncalled`print_gps_data` is defined that prints out the line passed to it to the console.
94
94
95
-
Next the code loops forever, reading as many lines of text as it can from the serial port in each loop. It calls the `printGPSData`functionfor each line.
95
+
Next the code loops forever, reading as many lines of text as it can from the serial port in each loop. It calls the `print_gps_data`functionfor each line.
96
96
97
97
After all the data has been read, the loop sleeps for 1 second, then tries again.
Copy file name to clipboardexpand all lines: 6-consumer/lessons/4-multiple-language-support/README.md
+3-1
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,9 @@
2
2
3
3
Add a sketchnote if possible/appropriate
4
4
5
-

5
+
This video gives an overview of the Azure speech services, covering speech to text and text to speech from earlier lessons, as well as translating speech, a topic covered in this lesson:
6
+
7
+
[](https://www.youtube.com/watch?v=h6xbpMPSGEA)
Copy file name to clipboardexpand all lines: README.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -20,9 +20,9 @@ The projects cover the journey of food from farm to table. This includes farming
20
20
21
21

22
22
23
-
**Hearty thanks to our authors [Jen Fox](https://github.com/jenfoxbot), [Jen Looper](https://github.com/jlooper), [Jim Bennett](https://github.com/jimbobbennett), and our sketchnote artist [Nitya Narasimhan](https://github.com/nitya)**
23
+
**Hearty thanks to our authors [Jen Fox](https://github.com/jenfoxbot), [Jen Looper](https://github.com/jlooper), [Jim Bennett](https://github.com/jimbobbennett), and our sketchnote artist [Nitya Narasimhan](https://github.com/nitya).**
24
24
25
-
**Thanks as well to our team of [Microsoft Learn Student Ambassadors](https://studentambassadors.microsoft.com?WT.mc_id=academic-17441-jabenn) who have been reviewing and translating this curriculum - [Manvi Jha](https://github.com/Severus-Matthew), [Mireille Tan](https://www.linkedin.com/in/mireille-tan-a4834819a/), [Mohammad Iftekher (Iftu) Ebne Jalal](https://github.com/Iftu119), [Priyanshu Srivastav](https://www.linkedin.com/in/priyanshu-srivastav-b067241ba), and [Zina Kamel](https://www.linkedin.com/in/zina-kamel/)**
25
+
**Thanks as well to our team of [Microsoft Learn Student Ambassadors](https://studentambassadors.microsoft.com?WT.mc_id=academic-17441-jabenn) who have been reviewing and translating this curriculum - [Bhavesh Suneja](https://github.com/EliteWarrior315), [Lateefah Bello](https://www.linkedin.com/in/lateefah-bello/), [Manvi Jha](https://github.com/Severus-Matthew), [Mireille Tan](https://www.linkedin.com/in/mireille-tan-a4834819a/), [Mohammad Iftekher (Iftu) Ebne Jalal](https://github.com/Iftu119), [Priyanshu Srivastav](https://www.linkedin.com/in/priyanshu-srivastav-b067241ba), and [Zina Kamel](https://www.linkedin.com/in/zina-kamel/).**
26
26
27
27
> **Teachers**, we have [included some suggestions](for-teachers.md) on how to use this curriculum. If you would like to create your own lessons, we have also included a [lesson template](lesson-template/README.md).
0 commit comments