\App\CloudModule\ModelsAwsManager

Tool for managing Amazon AWS IoT

Summary

Methods
Properties
Constants
__construct()
createMqttInterface()
createPaths()
downloadCaCertificate()
checkCertificate()
uploadCertsAndKey()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

__construct()

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

Constructor

Parameters

certPath

Path to the certificates

\App\CloudModule\Models\CertificateManager certManager

Manager for certificates

\App\CloudModule\Models\GenericManager configManager

Generic config manager

\App\CloudModule\Models\Client client

HTTP(S) client

Returns

createMqttInterface()

createMqttInterface(mixed||string|int  values) : 

Create MQTT interface

Parameters

mixed||string|int values

Values from form

Throws

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

Returns

createPaths()

createPaths() : mixed||string|int

Create paths for root CA certificate, certificate and private key

Returns

mixed||string|int —

Paths for root CA certificate, certificate and private key

downloadCaCertificate()

downloadCaCertificate() : 

Download root CA certificate

Throws

\App\CloudModule\Models\GuzzleException

Returns

checkCertificate()

checkCertificate(mixed||string|int  values) : 

Check a certificate and a private key

Parameters

mixed||string|int values

Form values

Throws

\App\CloudModule\Models\InvalidPrivateKeyForCertificateException

Returns

uploadCertsAndKey()

uploadCertsAndKey(mixed||string|int  values, mixed||string|int  paths) : 

Upload root CA certificate, certificate and private key

Parameters

mixed||string|int values

Form values

mixed||string|int paths

Paths for root CA certificate, certificate and private key

Returns