\App\CloudModule\ModelsHexioManager

Tool for managing Hexio IoT platform

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 = 'hexio-ca.crt' : 

CA certificate file name

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  $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