We use proprietary and third party´s cookies to improve your experience and our services, identifying your Internet Browsing preferences on our website; develop analytic activities and display advertising based on your preferences. If you keep browsing, you accept its use. You can get more information on our Cookie Policy
Cookies Policy
Ask Your Question
0

IoT Agent - HTTP & MQTT command (southbound)

asked 2019-12-03 12:06:57 +0200

GuyD gravatar image

Hello,

To me it's not clear if a device needs to take the initiative (pull) to get southbound/commands from the IoT Agent (http transport) or the IoT Agent takes the initiative (push) to the device?

For MQTT I suppose the IoT agent subscribes to the MQTT (Mosquitto) broker and subscribes and/or publishes to the MQTT broker?

Thanks for the clarification.

Guy

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
0

answered 2020-06-22 15:50:49 +0200

Jason Fox gravatar image

The reason that this remains unclear is that both options are possible.

  • an active attribute ( that is configured as part of the attributes array) must actively send measures to the agent
  • a lazy attribute ( that is configured as part of the lazy array) is requested by the IoT Agent whenever the context broker receives a request for the device.

Taking the HTTP transport as an example, the IoT Agent listens to the context broker on the north port and a "well-known" location on the southport so devices can send info to it. In the case of a lazy attribute the IoT Agent knows where to forward the request based on the resource defined by the configuration.

Taking the MQTT transport as an example, the IoT Agent listens to the context broker on the north port and subscribes to MQTT topics for each of the devices. In the case of a lazy attribute the IoT Agent publishes a topic for an update and polls and waits for the response before passing back to the context broker.

Active attributes are by far the commonest way to provision devices.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2019-12-03 12:06:57 +0200

Seen: 215 times

Last updated: Jun 22