Skip to content

Commit 8496bd8

Browse files
authored
Use dummy values and correct code rendering in README (#20322)
1 parent ddef780 commit 8496bd8

File tree

1 file changed

+4
-4
lines changed
  • sdk/media/azure-media-analytics-edge

1 file changed

+4
-4
lines changed

sdk/media/azure-media-analytics-edge/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ The second parameter, `payload`, sends the entire serialization of the media gra
4747

4848
### Creating a graph topology
4949
To create a graph topology you need to define parameters, sources, and sinks.
50-
```
50+
```python
5151
from azure.media.analyticsedge import *
5252

5353
#Parameters
@@ -69,7 +69,7 @@ graph_topology = MediaGraphTopology(name=graph_topology_name,properties=graph_pr
6969

7070
### Creating a graph instance
7171
To create a graph instance, you need to have an existing graph topology.
72-
```
72+
```python
7373
from azure.media.analyticsedge import *
7474

7575
#Parameters
@@ -86,13 +86,13 @@ graph_instance = MediaGraphInstance(name=graph_instance_name, properties=graph_i
8686

8787
### Invoking a graph method request
8888
To invoke a graph method on your device you need to first define the request using the lva sdk. Then send that method request using the iot sdk's `CloudToDeviceMethod`
89-
```
89+
```python
9090
from azure.media.analyticsedge import *
9191
from azure.iot.hub import IoTHubRegistryManager
9292
from azure.iot.hub.models import CloudToDeviceMethod
9393

9494
module_d = "mediaedge"
95-
connection_string = "HostName=lvasamplehubcx5a4jgbixyvg.azure-devices.net;SharedAccessKeyName=iothubowner;SharedAccessKey=/53Qw6ifN0ka4so72a1gVEhmyiz5fLb9iw+oWoyoQxk="
95+
connection_string = "test"
9696
set_method_request = MediaGraphTopologySetRequest(graph=graph_topology)
9797
direct_method = CloudToDeviceMethod(method_name=set_method_request.method_name, payload=set_method_request.serialize())
9898
registry_manager = IoTHubRegistryManager(connection_string)

0 commit comments

Comments
 (0)