Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use dummy values and correct code rendering in README #20322

Merged
merged 2 commits into from
Aug 31, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions sdk/media/azure-media-analytics-edge/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ The second parameter, `payload`, sends the entire serialization of the media gra

### Creating a graph topology
To create a graph topology you need to define parameters, sources, and sinks.
```
```python
from azure.media.analyticsedge import *

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

### Creating a graph instance
To create a graph instance, you need to have an existing graph topology.
```
```python
from azure.media.analyticsedge import *

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

### Invoking a graph method request
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`
```
```python
from azure.media.analyticsedge import *
from azure.iot.hub import IoTHubRegistryManager
from azure.iot.hub.models import CloudToDeviceMethod

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