\App\CloudModule\ModelsTcPisekManager

Tool for managing TC Písek 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
No private methods found
No private properties found
N/A

Constants

CA_FILENAME

CA_FILENAME = tcPisek-ca.crt

CA certificate file name

Methods

__construct()

__construct(  certPath, \App\CloudModule\Models\GenericManager  configManager, \App\CloudModule\Models\Client  client) : 

Constructor

Parameters

certPath

Path to the certificates

\App\CloudModule\Models\GenericManager configManager

Generic config manager

\App\CloudModule\Models\Client client

HTTP(S) client

Returns

createMqttInterface()

createMqttInterface(mixed||string|int  values) : 

Creates a new MQTT interface

Parameters

mixed||string|int values

Values from form

Throws

\App\CloudModule\Models\GuzzleException
\App\CloudModule\Models\JsonException

Returns

downloadCaCertificate()

downloadCaCertificate() : 

Downloads the root CA certificate

Throws

\App\CloudModule\Models\GuzzleException
\App\CloudModule\Models\IOException

Returns