<abstract> new Manager(logger, hostManager)
Parameters:
| Name | Type | Description |
|---|---|---|
logger |
olympe.logging.Channel | Logging channel |
hostManager |
olympe.host.Manager |
Members
-
<protected> elementUniqueId :number
-
Type:
- number
-
<protected, non-null> hostManager :olympe.host.Manager
-
Type:
- olympe.host.Manager
-
<protected, non-null> logger :olympe.logging.Channel
-
Type:
- olympe.logging.Channel
-
<protected, nullable> online :olympe.df.FlowSource.<!olympe.df.OBoolean>
-
Type:
Methods
-
createMqttClient(url [, options])
-
Create and return the mqtt client.
Parameters:
Name Type Argument Description urlstring The URL for bus connection
optionsolympe.net.Mqtt.MQTTConnectionOptions <optional>
The connection options
Returns:
The mqtt client
- Type
- olympe.net.Mqtt
-
<abstract> downloadFile(fileOrContent [, name] [, type])
-
Saves data into a local file. The data can come from a remote file, a string or a binary blob.
Parameters:
Name Type Argument Description fileOrContentolympe.df.File | olympe.df.Proxy.<olympe.df.File> | olympe.df.POString | string | Blob File or content.
namestring <optional>
Downloaded file name (by default, uses the original file name).
typestring <optional>
The MIME type.
-
<abstract, protected> getHttpRequestHandler()
-
Return the HttpRequest handler attached to this net manager.
Returns:
-
<abstract> getImplementationDescription()
-
Returns a description of the native implementation
Returns:
- Type
- string
-
<abstract> httpRequest(request, callback)
-
Handles a
HttpRequest.Parameters:
Name Type Description requestolympe.net.HttpRequest The request.
callbackolympe.net.Manager.HttpResponseCallback The callback to invoke with the result.
-
<abstract> isOnline()
-
Returns whether the VM is currently connected to internet.
Returns:
- Type
- olympe.df.POBoolean
-
<abstract> openWebSocket(request)
-
Creates a
WebSocketmatching aWebSocketRequest.Parameters:
Name Type Description requestolympe.net.WebSocketRequest The request.
Returns:
The opened
WebSocket.- Type
- olympe.net.WebSocket
-
<protected> registerHttpRequest(id, callback)
-
Register the http request in the handler to cancel it if the creator execution is destroyed before the end of its process.
Parameters:
Name Type Description idnumber callbackolympe.net.Manager.HttpResponseCallback Returns:
boundCallback
Type Definitions
-
HttpResponseCallback(response)
-
Parameters:
Name Type Description responseolympe.net.HttpResponse
Olympe SDK