@@ -36,9 +36,9 @@ The tutorial uses [cUrl](https://ec.haxx.se/) commands throughout, but is also a
36
36
- [ Start Up] ( #start-up )
37
37
- [ Provisioning an IoT Agent (UltraLight over MQTT)] ( #provisioning-an-iot-agent-ultralight-over-mqtt )
38
38
- [ Checking Mosquitto Health] ( #checking-mosquitto-health )
39
- - [ Start an MQTT Subscriber (: one : st Terminal)] ( #start-an-mqtt-subscriber-onest-terminal )
40
- - [ Start an MQTT Publisher (: two : nd Terminal)] ( #start-an-mqtt-publisher-twond-terminal )
41
- - [ Stop an MQTT Subscriber (: one : st Terminal)] ( #stop-an-mqtt-subscriber-onest-terminal )
39
+ - [ Start an MQTT Subscriber (1️⃣st Terminal)] ( #start-an-mqtt-subscriber-onest-terminal )
40
+ - [ Start an MQTT Publisher (2️⃣nd Terminal)] ( #start-an-mqtt-publisher-twond-terminal )
41
+ - [ Stop an MQTT Subscriber (1️⃣st Terminal)] ( #stop-an-mqtt-subscriber-onest-terminal )
42
42
- [ Show Mosquitto Log] ( #show-mosquitto-log )
43
43
- [ Checking the IoT Agent Service Health] ( #checking-the-iot-agent-service-health )
44
44
- [ Connecting IoT Devices] ( #connecting-iot-devices )
@@ -363,7 +363,7 @@ The device monitor can be found at: `http://localhost:3000/device/monitor`
363
363
We will start by mimicking the roles of both the IoT Agent and a dummy IoT device and send and receive some messages
364
364
using MQTT. This section of the tutorial requires several open terminals.
365
365
366
- # ## Start an MQTT Subscriber (:one:st Terminal)
366
+ # ## Start an MQTT Subscriber (1️⃣st Terminal)
367
367
368
368
Eventually once we have wired by the system correctly, IoT Agent will subscribe to all relevant events to listen for
369
369
northbound traffic in the form of sensor measurements. It therefore will need to make a subscription across all topics.
@@ -383,7 +383,7 @@ The terminal will then be ready to receive events
383
383
> **Note:** There is no change on whilst running this command. The on screen output will only respond once you have
384
384
> completed the next step.
385
385
386
- # ## Start an MQTT Publisher (:two:nd Terminal)
386
+ # ## Start an MQTT Publisher (2️⃣nd Terminal)
387
387
388
388
A sensor sending northbound measurements will publish to those measurements to the MQTT Broker to be passed on to any
389
389
subscriber than wants them. The sensor will not need to make a connection to the subscriber directly.
@@ -395,15 +395,15 @@ docker run -it --rm --name mqtt-publisher \
395
395
--network fiware_default efrecon/mqtt-client pub -h mosquitto -m "HELLO WORLD" -t "/test"
396
396
` ` `
397
397
398
- # ### :one:st terminal - Result:
398
+ # ### 1️⃣st terminal - Result:
399
399
400
400
If the MQTT Broker is functioning correctly, the message should be received in the other terminal
401
401
402
402
```
403
403
HELLO WORLD
404
404
```
405
405
406
- ### Stop an MQTT Subscriber (:two:nd Terminal)
406
+ ### Stop an MQTT Subscriber (2️⃣nd Terminal)
407
407
408
408
To terminate the MQTT subscriber, run the following Docker command:
409
409
@@ -439,7 +439,7 @@ docker logs --tail 10 mosquitto
439
439
440
440
You can check if the IoT Agent is running by making an HTTP request to the exposed port:
441
441
442
- #### : one : Request:
442
+ #### 1️⃣ Request:
443
443
444
444
``` console
445
445
curl -X GET \
@@ -541,7 +541,7 @@ The `resource` attribute is left blank since HTTP communication is not being use
541
541
optional attribute - if it is not provided, the IoT Agent uses the default context broker URL as defined in the
542
542
configuration file, however it has been added here for completeness.
543
543
544
- #### :two: Request:
544
+ #### 2️⃣ Request:
545
545
546
546
```console
547
547
curl -iX POST \
@@ -578,7 +578,7 @@ Three types of measurement attributes can be provisioned:
578
578
> ** Note** : in the case where individual ` id ` s are not required, or aggregated data is sufficient the ` attributes ` can
579
579
> be defined within the provisioning service rather than individually.
580
580
581
- #### : three : Request:
581
+ #### 3️⃣ Request:
582
582
583
583
``` console
584
584
curl -iX POST \
@@ -617,7 +617,7 @@ should subscribe to the `/<api-key>/<device-id>` **topic** to receive measuremen
617
617
You can simulate a dummy IoT device measurement coming from the ** Motion Sensor** device ` motion001 ` , by posting an MQTT
618
618
message to the following ** topic**
619
619
620
- #### : four : MQTT Request:
620
+ #### 4️⃣ MQTT Request:
621
621
622
622
``` console
623
623
docker run -it --rm --name mqtt-publisher --network \
@@ -652,7 +652,7 @@ raising a request with the Orion Context Broker.
652
652
You can see that a measurement has been recorded by retrieving the entity data from the context broker. Don't forget to
653
653
add the ` fiware-service ` and ` fiware-service-path ` headers.
654
654
655
- #### : five : Request:
655
+ #### 5️⃣ Request:
656
656
657
657
``` console
658
658
curl -X GET \
@@ -701,7 +701,7 @@ device is listening for commands. The array of commands is mapped to directly to
701
701
702
702
The example below provisions a bell with the ` deviceId=bell001 ` .
703
703
704
- #### : six : Request:
704
+ #### 6️⃣ Request:
705
705
706
706
``` console
707
707
curl -iX POST \
@@ -735,7 +735,7 @@ REST request directly to the IoT Agent's North Port using the `/v2/op/update` en
735
735
eventually be invoked by the context broker once we have connected it up. To test the configuration you can run the
736
736
command directly as shown:
737
737
738
- #### : seven : Request:
738
+ #### 7️⃣ Request:
739
739
740
740
``` console
741
741
curl -iX POST \
@@ -764,7 +764,7 @@ If you are viewing the device monitor page, you can also see the state of the be
764
764
765
765
The result of the command to ring the bell can be read by querying the entity within the Orion Context Broker.
766
766
767
- #### : eight : Request:
767
+ #### 8️⃣ Request:
768
768
769
769
``` console
770
770
curl -X GET \
@@ -797,7 +797,7 @@ both `attributes` and `command` attributes in the body of the request. Once agai
797
797
the communications protocol to be used, and no ` endpoint ` attribute is required as there is no HTTP URL where the device
798
798
is listening for commands.
799
799
800
- #### : nine : Request:
800
+ #### 9️⃣ Request:
801
801
802
802
``` console
803
803
curl -iX POST \
@@ -836,7 +836,7 @@ curl -iX POST \
836
836
837
837
Similarly, a ** Smart Lamp** with two commands (` on ` and ` off ` ) and two attributes can be provisioned as follows:
838
838
839
- #### : one :: zero : Request:
839
+ #### 1️⃣0️⃣ Request:
840
840
841
841
``` console
842
842
curl -iX POST \
@@ -872,7 +872,7 @@ curl -iX POST \
872
872
873
873
The full list of provisioned devices can be obtained by making a GET request to the ` /iot/devices ` endpoint.
874
874
875
- #### : one :: one : Request:
875
+ #### 1️⃣1️⃣ Request:
876
876
877
877
``` console
878
878
curl -X GET \
@@ -903,7 +903,7 @@ Therefore this section of registering and invoking commands **duplicates** the i
903
903
904
904
To invoke the ` ring ` command, the ` ring ` attribute must be updated in the context.
905
905
906
- #### : one :: two : Request:
906
+ #### 1️⃣2️⃣ Request:
907
907
908
908
``` console
909
909
curl -iX PATCH \
@@ -927,7 +927,7 @@ If you are viewing the device monitor page, you can also see the state of the be
927
927
928
928
To invoke the ` open ` command, the ` open ` attribute must be updated in the context.
929
929
930
- #### : one :: three : Request:
930
+ #### 1️⃣3️⃣ Request:
931
931
932
932
``` console
933
933
curl -iX PATCH \
@@ -947,7 +947,7 @@ curl -iX PATCH \
947
947
948
948
To switch on the ** Smart Lamp** , the ` on ` attribute must be updated in the context.
949
949
950
- #### : one :: four : Request:
950
+ #### 1️⃣4️⃣ Request:
951
951
952
952
``` console
953
953
curl -iX PATCH \
0 commit comments