\App\IqrfNetModule\ModelsUploadManager

Upload manager

Summary

Methods
Properties
Constants
__construct()
upload()
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(\App\IqrfNetModule\Models\ApiRequest  apiRequest, \App\IqrfNetModule\Models\WebSocketClient  wsClient) : 

Constructor

Parameters

\App\IqrfNetModule\Models\ApiRequest apiRequest

IQRF Gateway Daemon's JSON API request

\App\IqrfNetModule\Models\WebSocketClient wsClient

WebSocket client

Returns

upload()

upload(  filePath, \App\IqrfNetModule\Models\UploadFormats|null  format = null) : mixed||string|int

Uploads a file into the coordinator

Parameters

filePath

Path to the file to upload

\App\IqrfNetModule\Models\UploadFormats|null format

File format

Throws

\App\IqrfNetModule\Models\DpaErrorException
\App\IqrfNetModule\Models\EmptyResponseException
\App\IqrfNetModule\Models\JsonException
\App\IqrfNetModule\Models\UserErrorException

Returns

mixed||string|int —

API request and response