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
You can then choose any shared access policy from the drop-down as shown in the screenshot above. It only shows policies that have the **ServiceConnect** permissions to connect to the specified Event Hub.
55
+
You can then choose any shared access policy from the drop-down as shown in the screenshot above. It only shows policies that have the **ServiceConnect** permissions to connect to the specified event hub.
56
56
57
57
The SDKs you can use to connect to the built-in Event Hub-compatible endpoint that IoT Hub exposes include:
58
58
@@ -79,7 +79,7 @@ You can use the Event Hubs SDKs to read from the built-in endpoint in environmen
Copy file name to clipboardExpand all lines: articles/iot-hub/iot-hub-how-to-android-things.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -65,13 +65,13 @@ A device must be registered with your IoT hub before it can connect. In this qui
65
65
adb devices
66
66
```
67
67
68
-
3. Download our sample for Android/Android Things from this [repository](https://github.com/Azure-Samples/azure-iot-samples-java) or use Git.
68
+
3. Download our sample for Android/Android Things from the [Microsoft Azure IoT SDKs for Java repository](https://github.com/Azure/azure-iot-sdk-java/#samples) or use Git to clone the repository as shown in the following example.
4. In Android Studio, open the Android Project in located in "\azure-iot-samples-java\iot-hub\Samples\device\AndroidSample".
74
+
4. In Android Studio, open the Android Project from the *\azure-iot-sdk-java\device\iot-device-samples\android-sample* folder in your copy of the repository.
75
75
76
76
5. Open gradle.properties file, and replace "Device_connection_string" with your device connection string noted earlier.
Copy file name to clipboardExpand all lines: articles/iot-hub/iot-hub-ios-swift-c2d.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,7 +33,7 @@ To learn more about cloud-to-device messages, see [Send cloud-to-device messages
33
33
34
34
* An active IoT hub in Azure.
35
35
36
-
* The code sample from [Azure samples](https://github.com/Azure-Samples/azure-iot-samples-ios/archive/master.zip).
36
+
* The code sample from the [Azure IoT Samples for IoS Platform repository](https://github.com/Azure-Samples/azure-iot-samples-ios).
37
37
38
38
* The latest version of [XCode](https://developer.apple.com/xcode/), running the latest version of the iOS SDK. This quickstart was tested with XCode 9.3 and iOS 11.3.
39
39
@@ -49,7 +49,7 @@ In this section, you simulate an iOS device running a Swift application to recei
49
49
50
50
CocoaPods manages dependencies for iOS projects that use third-party libraries.
51
51
52
-
In a terminal window, navigate to the Azure-IoT-Samples-iOS folder that you downloaded in the prerequisites. Then, navigate to the sample project:
52
+
In a terminal window, navigate to the folder containing the repository that you downloaded in the [prerequisites](#prerequisites). Then, navigate to the sample project:
Copy file name to clipboardExpand all lines: articles/iot-hub/quickstart-control-device-android.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,9 +24,9 @@ In this quickstart, you use a direct method to control a simulated device connec
24
24
25
25
*[Git](https://git-scm.com/download/).
26
26
27
-
*[Device SDK sample Android application](https://github.com/Azure-Samples/azure-iot-samples-java/tree/master/iot-hub/Samples/device/AndroidSample), included in [Azure IoT Samples (Java)](https://github.com/Azure-Samples/azure-iot-samples-java).
27
+
*[Device SDK sample Android application](https://github.com/Azure/azure-iot-sdk-java/tree/main/device/iot-device-samples/android-sample), included in the [Microsoft Azure IoT SDKs for Java repository](https://github.com/Azure/azure-iot-sdk-java).
28
28
29
-
*[Service SDK sample Android application](https://github.com/Azure-Samples/azure-iot-samples-java/tree/master/iot-hub/Samples/service/AndroidSample), included in Azure IoT Samples (Java).
29
+
*[Service SDK sample Android application](https://github.com/Azure/azure-iot-sdk-java/tree/main/device/iot-device-samples/android-sample), included in the [Microsoft Azure IoT SDKs for Java repository](https://github.com/Azure/azure-iot-sdk-java).
30
30
31
31
* Port 8883 open in your firewall. The device sample in this quickstart uses MQTT protocol, which communicates over port 8883. This port may be blocked in some corporate and educational network environments. For more information and ways to work around this issue, see [Connecting to IoT Hub (MQTT)](iot-hub-mqtt-support.md#connecting-to-iot-hub).
32
32
@@ -92,11 +92,11 @@ You use this value later in the quickstart. This service connection string is di
92
92
93
93
## Listen for direct method calls
94
94
95
-
Both of the samples for this quickstart are part of the azure-iot-samples-java repository on GitHub. Download or clone the [azure-iot-samples-java](https://github.com/Azure-Samples/azure-iot-samples-java) repository.
95
+
Both of the samples for this quickstart are part of the [Microsoft Azure IoT SDKs for Java repository](https://github.com/Azure/azure-iot-sdk-java) on GitHub. Download or clone the repository.
96
96
97
97
The device SDK sample application can be run on a physical Android device or an Android emulator. The sample connects to a device-specific endpoint on your IoT hub, sends simulated telemetry, and listens for direct method calls from your hub. In this quickstart, the direct method call from the hub tells the device to change the interval at which it sends telemetry. The simulated device sends an acknowledgment back to your hub after it executes the direct method.
98
98
99
-
1. Open the GitHub sample Android project in Android Studio. The project is located in the following directory of your cloned or downloaded copy of [azure-iot-sample-java](https://github.com/Azure-Samples/azure-iot-samples-java) repository: *\azure-iot-samples-java\iot-hub\Samples\device\AndroidSample*.
99
+
1. Open the GitHub sample Android project in Android Studio. The project is located in the following directory of your cloned or downloaded copy of the [Microsoft Azure IoT SDKs for Java repository](https://github.com/Azure/azure-iot-sdk-java): *\azure-iot-sdk-java\device\iot-device-samples\android-sample*.
100
100
101
101
2. In Android Studio, open *gradle.properties* for the sample project and replace the **Device_Connection_String** placeholder with the device connection string you made a note of earlier.
102
102
@@ -146,7 +146,7 @@ Run this app on a separate physical Android device or Android emulator.
146
146
147
147
An IoT Hub back-end service application typically runs in the cloud, where it's easier to mitigate the risks associated with the sensitive connection string that controls all devices on an IoT Hub. In this example, we are running it as an Android app for demonstration purposes only. The other-language versions of this quickstart provide examples that align more closely with a typical back-end service application.
148
148
149
-
1. Open the GitHub service sample Android project in Android Studio. The project is located in the following directory of your cloned or downloaded copy of [azure-iot-sample-java](https://github.com/Azure-Samples/azure-iot-samples-java) repository: *\azure-iot-samples-java\iot-hub\Samples\service\AndroidSample*.
149
+
1. Open the GitHub service sample Android project in Android Studio. The project is located in the following directory of your cloned or downloaded copy of the [Microsoft Azure IoT SDKs for Java repository](https://github.com/Azure/azure-iot-sdk-java): *\azure-iot-sdk-java\device\iot-device-samples\android-sample*.
150
150
151
151
2. In Android Studio, open *gradle.properties* for the sample project. Update the values for the **ConnectionString** and **DeviceId** properties with the service connection string you noted earlier and the Android device ID you registered.
0 commit comments