Skip to content

Commit 9d49b38

Browse files
author
Maurizio Branca
authored
Add how to connect to DEV environment (#2)
1 parent 4740060 commit 9d49b38

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

README.md

+11-1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ You should connect the new device to the new thing.
4141

4242
### Testing
4343

44+
#### Connect to the PROD environment
45+
4446
```shell
4547
$ iot-cloud-cli ping -u "<Device ID>" -p "<Secret Key>" -t <Thing ID>>
4648
```
@@ -53,4 +55,12 @@ Property value sent successfully 81
5355
Property value sent successfully 87
5456
```
5557

56-
If you visit https://create.arduino.cc/iot/devices the "Generic ESP8266 Module" device status should be "Online".
58+
If you visit https://create.arduino.cc/iot/devices the "Generic ESP8266 Module" device status should be "Online".
59+
60+
#### Connect to the DEV environment
61+
62+
The DEV environment is using a different broker, so you need to add the option `--host`:
63+
64+
```shell
65+
$ iot-cloud-cli ping --host tcps://mqtts-sa.iot.oniudra.cc:8884 -u "<Device ID>" -p "<Secret Key>" -t "<thing-id>"
66+
```

0 commit comments

Comments
 (0)