\App\CloudModule\ModelsInteliGlueManager

Tool for managing Inteliments InteliGlue

Summary

Methods
Properties
Constants
__construct()
createMqttInterface()
downloadCaCertificate()
No public properties found
CA_FILENAME
No protected methods found
No protected properties found
N/A
createDirectory()
$certPath
$client
$configManager
N/A

Constants

CA_FILENAME

CA_FILENAME = 'inteliments-ca.crt' : 

CA certificate filename

Properties

$certPath

$certPath : string

Type

normal — Path to the certificates

$client

$client : \GuzzleHttp\ClientInterface

Type

\GuzzleHttp\ClientInterface — HTTP(S) client

$configManager

$configManager : \App\ConfigModule\Models\GenericManager

Type

normal — Generic configuration manager

Methods

__construct()

__construct(string  $certPath, \App\ConfigModule\Models\GenericManager  $configManager, \GuzzleHttp\ClientInterface  $client) : mixed

Constructor

Parameters

string $certPath

Path to the certificates

\App\ConfigModule\Models\GenericManager $configManager

Generic config manager

\GuzzleHttp\ClientInterface $client

HTTP(S) client

Returns

mixed

createMqttInterface()

createMqttInterface(array<string,int|string>  $values) : void

Creates a new MQTT interface

Parameters

array $values

Values from form

Throws

\GuzzleHttp\Exception\GuzzleException
\Nette\Utils\JsonException

downloadCaCertificate()

downloadCaCertificate() : void

Downloads the root CA certificate

Throws

\GuzzleHttp\Exception\GuzzleException
\Nette\IOException

createDirectory()

createDirectory() : void

Creates a directory for certificates

Throws

\App\CloudModule\Exceptions\CannotCreateCertificateDirectoryException