Skip to content
This repository was archived by the owner on Apr 24, 2019. It is now read-only.

Commit d3bb2fe

Browse files
committed
Merge pull request #8 from ARMmbed/prod_address
Updating mDS addresses to point to Production server.
2 parents ffbcbe3 + bd1b1e8 commit d3bb2fe

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

README.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,12 @@ This document describes how to start using the mbed Client example application o
2424

2525
To run the example:
2626

27-
1. Go to the [mbed Device Connector website](http://connector-test.dev.mbed.com) and log in with your mbed.org account.
27+
1. Go to the [mbed Device Connector website](https://connector.mbed.com) and log in with your mbed.org account.
2828

2929
2. Configure the mbed Client example program as needed. See the [Running and build instructions](#running-and-build-instructions) chapter for more information.
3030

3131
4. Build the application with yotta. See the [Running and build instructions](#running-and-build-instructions) chapter for more information.
3232

33-
5. Run the application from the command prompt. See the [Running the mbed Client Linux example](#running-the-mbed-client-linux-example) chapter for more information.
34-
3533
## Running and build instructions
3634
### Review: building for two connection modes
3735

@@ -71,7 +69,7 @@ First, made sure you've installed yotta and all necessary toolchains. See instru
7169

7270
- Set `MBED_SERVER_PORT` to `5684`.
7371

74-
C. Go to the [mbed Device Connector website](http://connector-test.dev.mbed.com).
72+
C. Go to the [mbed Device Connector website](https://connector.mbed.com).
7573

7674
D. Go to **My devices>Security credentials**.
7775

@@ -113,7 +111,7 @@ First, made sure you've installed yotta and all necessary toolchains. See instru
113111

114112
Ensure that you have the example application running on your Linux environment (see [Running the mbed Client Linux example](#running-the-mbed-client-linux-example)).
115113

116-
1. Go to the [mbed Device Connector website](http://connector-test.dev.mbed.com).
114+
1. Go to the [mbed Device Connector website](https://connector.mbed.com).
117115

118116
2. Log in using your mbed account.
119117

@@ -123,12 +121,12 @@ Ensure that you have the example application running on your Linux environment (
123121

124122
- Go to **mbed Device Connector>API Console**.
125123

126-
- Click the URL to create a request. For example: `http://ds-test.dev.mbed.com/v1/endpoints/mbed-linux-endpoint/Test/0/S?sync=true` creates a GET request to the static **/Test/0/S** resource.
127-
124+
- Click the URL to create a request. For example: `https://api.connector.mbed.com/v1/endpoints/mbed-linux-endpoint/Test/0/S?sync=true` creates a GET request to the static **/Test/0/S** resource.
128125
- **/Test/0/D** represents the dynamic resource that the mbed Device Server can read. The example program automatically increments the resource's value every 10 seconds, displaying **Resource Value /Test/0/D : <Value>** on the console. The value starts from zero and the increments are steps of one.
129-
130126
- **/Test/0/S** represents the static resource that has a fixed value in the mbed Client.
131127

132128
**NOTE:** If you changed your endpoint's name (the variable `MBED_ENDPOINT_NAME` in `sources/security.h`) from the default `mbed-linux-endpoint`, you will need to change it in the above URLs as well.
133129

130+
For more information on the mbed Device Connector REST API, see help pages.
131+
134132
To stop and deregister the mbed Client example, you need to interrupt the program by pressing CTRL+C. This sends an unregister message to mDS. The console displays **Unregistering endpoint**. After a successful deregistration, the console displays **Unregistration done --> exiting** and terminates the program. Also, the endpoint disappears from the **Connected devices** list on the mbed Device Connector web UI.

source/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
M2MSecurity::SecurityModeType CONN_MODE = M2MSecurity::NoSecurity;
3232

3333
// This is address to mbed Device Connector
34-
const String &MBED_SERVER_ADDRESS = "coap://ds-test.dev.mbed.com";
34+
const String &MBED_SERVER_ADDRESS = "coap://api.connector.mbed.com";
3535
//If you use secure connection port is 5684, for non-secure port is 5683
3636
const int &MBED_SERVER_PORT = 5683;
3737

0 commit comments

Comments
 (0)