You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -110,7 +110,7 @@ A direct comparison of the two IoT Agents can be seen below:
110
110
| HTTP commands posted to a well-known URL - response is in the reply | HTTP commands posted to a well-known URL - response is in the reply | Communications Handshake |
111
111
| MQTT devices are identified by the path of the topic `/XXX/YYY`| MQTT devices are identified by the path of the topic `/XXX/YYY`| Device Identification |
112
112
| MQTT commands posted to the `cmd` topic | MQTT commands posted to the `cmd` topic | Communications Handshake |
113
-
| MQTT command responses posted to the `cmdexe` topic | MQTT command responses posted to the `cmdexe` topic | Communications Handshake |
113
+
| MQTT command responses posted to the `cmdexe` topic | MQTT command responses posted to the `cmdexe` topic | Communications Handshake |
114
114
115
115
As can be seen, the message payload differs entirely between the two IoT Agents, but much of the rest of the protocol
116
116
remains the same.
@@ -544,9 +544,9 @@ however it has been included here for completeness.
544
544
### Provisioning a Sensor
545
545
546
546
It is common good practice to use URNs following the NGSI-LD
547
-
[specification](https://cim.etsi.org/NGSI-LD/official/front-page.html) when creating
548
-
entities. Furthermore it is easier to understand meaningful names when defining data attributes. These mappings can be
549
-
defined by provisioning a device individually.
547
+
[specification](https://cim.etsi.org/NGSI-LD/official/front-page.html) when creating entities. Furthermore it is easier
548
+
to understand meaningful names when defining data attributes. These mappings can be defined by provisioning a device
549
+
individually.
550
550
551
551
Three types of measurement attributes can be provisioned:
552
552
@@ -625,9 +625,9 @@ curl -iX POST \
625
625
-d '{"c": "1"}'
626
626
```
627
627
628
-
Both the payload and the `Content-Type` have been updated. The dummy devices made a similar JSON request in the
629
-
previous tutorials when the door was unlocked, you will have seen the state of each motion sensor changing and a
630
-
Northbound request will be logged in the device monitor.
628
+
Both the payload and the `Content-Type` have been updated. The dummy devices made a similar JSON request in the previous
629
+
tutorials when the door was unlocked, you will have seen the state of each motion sensor changing and a Northbound
630
+
request will be logged in the device monitor.
631
631
632
632
Now the IoT Agent is connected, the service group has defined the resource upon which the IoT Agent is listening
633
633
(`iot/json`) and the API key used to authenticate the request (`4jggokgpepnvsb2uv4s40d59ov`). Since both of these are
@@ -789,8 +789,8 @@ command can be seen in the value of the `ring_info` attribute.
789
789
790
790
### Provisioning a Smart Door
791
791
792
-
Because the underlying JSON and JSON protocols are so similar, actuators and devices are provisioned using the
793
-
same attributes as the data the IoT Agent needs to know to communicate with the device reamins the same, and the payload
792
+
Because the underlying JSON and JSON protocols are so similar, actuators and devices are provisioned using the same
793
+
attributes as the data the IoT Agent needs to know to communicate with the device reamins the same, and the payload
794
794
parsing NGSI to JSON is delegated to the IoT Agent itself. Provisioning a device which offers both commands and
795
795
measurements is merely a matter of making an HTTP POST request with both `attributes` and `command` attributes in the
0 commit comments