Skip to content

Commit 3f14f6e

Browse files
committed
code formatting in README
1 parent 9765475 commit 3f14f6e

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
11
# iot-simulator
22
IoT Simulator in Go
33

4-
Make a file called config.json and use the sample-config.json as a sample
4+
Make a file called config.json and use the sample-config.json as a sample
55

6-
{
6+
`{
77
"Interval":5,
88
"IoTHubs":["gebahub.azure-devices.net","gebahub2.azure-devices.net"],
99
"SasTokens":["SharedAccessSignature sr=...",
1010
"SharedAccessSignature sr=..."],
1111
"DevGroups":[
1212
{"Prefix":"deva","DeviceNum":50,"Firmware":"1.0","IoTHub": 0},
1313
{"Prefix":"devb","DeviceNum":50,"Firmware":"1.1","IoTHub": 1}]
14-
}
14+
}`
15+
16+
1517

1618
With the above config, there are two IoT Hubs each with its own SAS token (generate it with Device Explorer). The DevGroups control device creation. In the above case, 50 devices are created on IoT Hub 0 (gebahub) and 50 on IoT Hub 2 (gebahub2). The device names are prefix+device number.
1719

0 commit comments

Comments
 (0)