Skip to content
Snippets Groups Projects
Commit e2ab5aa6 authored by Weiwei Chen's avatar Weiwei Chen
Browse files

[mod]: update the README.md file.

parent 37769c97
No related branches found
No related tags found
No related merge requests found
......@@ -14,19 +14,23 @@ There is a full example in `test/main_test.py`.
Create a config dictionary.
```
client_cofnig = {'host_url': 'http://127.0.0.1',
'api_route': 'api',
'port': 5000,
'api_version': '1.0.1',
'session_id': 0}
receiver_client_cofnig = {
'host_url': 'http://127.0.0.1',
'api_route': 'api',
'port': 5000,
'api_version': '1.0.1',
'session_id': 0,
'client_type': 'receiver',
'client_id': '[rx_uuid]'
}
```
Instantiate a client API object.
```
receiver_config = MoonbounceClientAPI(client_cofnig)
receiver_api_client = MoonbounceClientAPI(receiver_client_cofnig)
```
Instantiate a client with the API object.
```
receiver = MoonbounceReceiver(receiver_config)
receiver = MoonbounceReceiver(receiver_api_client)
```
Start the client
```
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment