Backend: HTTP(s)
Last updated
Last updated
You can enable or disable sending data to Ruuvi Cloud:
Or configure to send data to your own server via HTTP/HTTPS (it is possible to send data to both destinations, Ruuvi Cloud and your own server, at the same time):
For your own server, you can choose the data format and decode data from Ruuvi sensors on the Gateway side:
Configure sending interval:
When using "Basic" authentication, the gateway adds an authorization header to the HTTPS request. This header contains the credentials encoded in Base64 format.
HTTP Header Example:
Authorization: Basic dXNlcjE6cGFzczE=
Explanation:
Basic
: Indicates the authentication method.
dXNlcjE6cGFzczE=
: Base64 encoded credentials. For example, 'user1:pass1' encodes to 'dXNlcjE6cGFzczE='.
When using "Bearer" authentication, the gateway adds an authorization header with a token to the HTTPS request. This token is a credential used to access APIs securely.
HTTP Header Example:
Authorization: Bearer token123
Token-based authentication involves securing API requests by sending a token in the HTTP header. The token is a unique identifier that must be included in every request.
HTTP Header Example:
Authorization: Token token124
API key authentication is a simple method where an API key is used directly as part of the HTTP header to authenticate requests.
HTTP Header Example:
Authorization: token125
It also supports client authentication via SSL by enabling the upload of a client certificate and its associated private key, ensuring secure and verified client-server communication:
You can use a server SSL Certificate if you want to be independent of public Certificate Authorities (CAs) or if you have deployed a self-signed certificate on the HTTPS server, giving you greater control and customization over your security infrastructure: