three.MF.V3.Tasks.ConnectWifi

 1from MF.V3.Settings.Wifi import Wifi as MF_V3_Settings_Wifi_Wifi
 2from MF.V3.Task import TaskState as MF_V3_Task_TaskState
 3
 4
 5class ConnectWifi:
 6    """*
 7    Connect to a wifi network.
 8
 9    > Request example:
10
11    ```json
12    {
13    "Task":{
14    "Index":1,
15    "Type":"ConnectWifi",
16    "Input":{
17    "ssid":"Network1"
18    "password":"password"
19    }
20    }
21    }
22    ```
23
24    > Response example:
25
26    ```json
27    {
28    "Task":{
29    "Index":1,
30    "Type":"ConnectWifi",
31    "Input":{
32    {
33    "ssid":"Network1"
34    "password":"password"
35    }
36    "State":"Completed"
37    }
38    }
39    ```
40    """
41    class Request:
42
43        """
44         Client request for the `ConnectWifi` task.
45        """
46        def __init__(self, Index: int, Type: str, Input: MF_V3_Settings_Wifi_Wifi):
47            # A unique identifier generated by the client.
48            self.Index = Index
49            # "ConnectWifi"
50            self.Type = Type
51            # Wifi settings.
52            self.Input = Input
53
54    class Response:
55
56        """
57         Server response for the `ConnectWifi` task.
58        """
59        def __init__(self, Index: int, Type: str, Input: MF_V3_Settings_Wifi_Wifi, State: MF_V3_Task_TaskState = None, Error: str = None):
60            # The unique identifier generated by the client.
61            self.Index = Index
62            # "ConnectWifi"
63            self.Type = Type
64            # The requested wifi settings.
65            self.Input = Input
66            # The current state of the task.
67            self.State = State
68            # A string describing the error if the task has failed.
69            self.Error = Error
70
71    def __init__(self):
72        pass
class ConnectWifi:
 6class ConnectWifi:
 7    """*
 8    Connect to a wifi network.
 9
10    > Request example:
11
12    ```json
13    {
14    "Task":{
15    "Index":1,
16    "Type":"ConnectWifi",
17    "Input":{
18    "ssid":"Network1"
19    "password":"password"
20    }
21    }
22    }
23    ```
24
25    > Response example:
26
27    ```json
28    {
29    "Task":{
30    "Index":1,
31    "Type":"ConnectWifi",
32    "Input":{
33    {
34    "ssid":"Network1"
35    "password":"password"
36    }
37    "State":"Completed"
38    }
39    }
40    ```
41    """
42    class Request:
43
44        """
45         Client request for the `ConnectWifi` task.
46        """
47        def __init__(self, Index: int, Type: str, Input: MF_V3_Settings_Wifi_Wifi):
48            # A unique identifier generated by the client.
49            self.Index = Index
50            # "ConnectWifi"
51            self.Type = Type
52            # Wifi settings.
53            self.Input = Input
54
55    class Response:
56
57        """
58         Server response for the `ConnectWifi` task.
59        """
60        def __init__(self, Index: int, Type: str, Input: MF_V3_Settings_Wifi_Wifi, State: MF_V3_Task_TaskState = None, Error: str = None):
61            # The unique identifier generated by the client.
62            self.Index = Index
63            # "ConnectWifi"
64            self.Type = Type
65            # The requested wifi settings.
66            self.Input = Input
67            # The current state of the task.
68            self.State = State
69            # A string describing the error if the task has failed.
70            self.Error = Error
71
72    def __init__(self):
73        pass

* Connect to a wifi network.

Request example:

{
"Task":{
"Index":1,
"Type":"ConnectWifi",
"Input":{
"ssid":"Network1"
"password":"password"
}
}
}

Response example:

{
"Task":{
"Index":1,
"Type":"ConnectWifi",
"Input":{
{
"ssid":"Network1"
"password":"password"
}
"State":"Completed"
}
}
class ConnectWifi.Request:
42    class Request:
43
44        """
45         Client request for the `ConnectWifi` task.
46        """
47        def __init__(self, Index: int, Type: str, Input: MF_V3_Settings_Wifi_Wifi):
48            # A unique identifier generated by the client.
49            self.Index = Index
50            # "ConnectWifi"
51            self.Type = Type
52            # Wifi settings.
53            self.Input = Input

Client request for the ConnectWifi task.

ConnectWifi.Request(Index: int, Type: str, Input: MF.V3.Settings.Wifi.Wifi)
47        def __init__(self, Index: int, Type: str, Input: MF_V3_Settings_Wifi_Wifi):
48            # A unique identifier generated by the client.
49            self.Index = Index
50            # "ConnectWifi"
51            self.Type = Type
52            # Wifi settings.
53            self.Input = Input
Index
Type
Input
class ConnectWifi.Response:
55    class Response:
56
57        """
58         Server response for the `ConnectWifi` task.
59        """
60        def __init__(self, Index: int, Type: str, Input: MF_V3_Settings_Wifi_Wifi, State: MF_V3_Task_TaskState = None, Error: str = None):
61            # The unique identifier generated by the client.
62            self.Index = Index
63            # "ConnectWifi"
64            self.Type = Type
65            # The requested wifi settings.
66            self.Input = Input
67            # The current state of the task.
68            self.State = State
69            # A string describing the error if the task has failed.
70            self.Error = Error

Server response for the ConnectWifi task.

ConnectWifi.Response( Index: int, Type: str, Input: MF.V3.Settings.Wifi.Wifi, State: MF.V3.Task.TaskState = None, Error: str = None)
60        def __init__(self, Index: int, Type: str, Input: MF_V3_Settings_Wifi_Wifi, State: MF_V3_Task_TaskState = None, Error: str = None):
61            # The unique identifier generated by the client.
62            self.Index = Index
63            # "ConnectWifi"
64            self.Type = Type
65            # The requested wifi settings.
66            self.Input = Input
67            # The current state of the task.
68            self.State = State
69            # A string describing the error if the task has failed.
70            self.Error = Error
Index
Type
Input
State
Error