Many of the IoT devices also use HTTP as a connectivity option. Let's see what HTTP parameters could be configured.
HTTP is very common as most of the web runs on it. Following fields could be configured in the IoTIFY HTTP client-
HTTP Protocol configuration settings
Protocol: Specify whether to use HTTP Secure or unsecured HTTP. It is always recommended to use secure HTTPS even if you don't have any security settings such as password or preshared key.
Host: HTTP Host, either a DNS name or an IP address followed by the port number.
Path: The Rest API path which you are connecting to. This field is also scriptable, which means you could dynamically change the path at the run time with templated string such as /api/v1/{{state.endpoint}}
Method: HTTP Rest method to use.
Additional Headers:Configure any additional REST headers here. They may be useful to pass any bearer tokens or other authentication headers. The fields in this are scriptable and could be used with templated strings such as "Bearer {{state.token}}"
Timeout: The timeout value after which the iteration must be marked failed, if no response is received.
Url Encode: Whether to URL encode the payload instead of sending this as a body.
IOTIFY also enables REST APIs usage within the device model functions. Check here for more details.
Last modified 1yr ago
Copy link