A sample resource definition, together with details on the information that is added in the JSON are as follows:
Sample definition JSON to configure Wi-fi
The following are sample configurations that can be used in a JSON to configure Wi-fi on Android devices:
Excerpt |
---|
Code Block |
---|
{
"operation": {
"ssid": "WSO2-Guest",
"password": "2hr3999Hy"
},
"deviceIDs": [
"d8:50:e6:2f:6a:8b",
"a5:60:e6:2g:6a:5b"
]
} |
|
Property definitions
...
operation
...
For more information on the property definitions, see below: Table of Contents |
---|
maxLevel | 5 |
---|
minLevel | 5 |
---|
type | flat |
---|
separator | pipe |
---|
|
Property | Description | Image Modified | Image Modified | Data Type | Example |
---|
|
...
|
---|
| This specifies the operation that is to be applied on the Android device. | Yes | N/A | operation | |
|
...
| | ID of the Android device. Multiple device IDs can be added by using comma separated values. For more information on retrieving the device ID, see Retrieving the ID of an Android device. | Yes | N/A | String | d8:50:e6:2f:6a:8b |
operation Property | Description | Image Modified | Image Modified | Data Type | Example |
---|
|
...
| The name of the Wifi network that you wish to configure. | Yes | N/A | String | WSO2-Guest |
|
...
| | The password to connect to the specified Wifi network. | Yes | N/A | String | 2hr3999Hy |
|