GET /system/network/adapters/wireless/primary/hotspot
This turns the controller into a Wi-Fi hotspot with a router. This puts the hotspot into a separate subnetwork with a DHCP server to provide IP addresses to any connected device.
Wide area network (WAN) connectivity is through the wired connection. Though BACnet/IP uses IP protocol to communicate, this hotspot acts as an IP router; it does not forward broadcast messages which are important in BACnet to identify services that are available within the BACnet internetwork.
Note that the password returned under the encryption section, is encoded in Base64.
Used when you are operating a browser without access to the header parameter. This allows you to choose which encoding you want to use for the response:
All these resources can be used according what the resource allows.
If this parameter is not in the request, the Application/Json will be chosen by default.
There are multiple possible values (according the resource):
The first two are the most often used.
Object Name: Encryption
Property Name | Type | Description | Method |
---|---|---|---|
Type | String | This property references the type of the encryption. There are multiple encryption types:
|
GET POST |
Password | String | This property is the password of the encryption. The password value need to be encoded in Base64. When encryption is used, set the password to access the Wi-Fi network as a client or the password other clients will use to access this hotspot. Passwords should be a long series of random alphanumeric characters and symbols that are hard to guess. This parameter is case sensitive. For the type WPA2E, the password is that of the user. | GET POST |
Username | String | This property represents the user's name that can be connected to the network. | GET POST |
EAP | String | This property is EAP, it's the network communication protocol. It's used to connect to an enterprise network that has a working RADIUS authentication server. The possible values are :
|
GET POST |
Phase2 | String | This property is the phase 2 authentication, used to connect to an enterprise network that has a working RADIUS authentication server. The possible values are :
|
GET POST |
Object Name: Advanced
Property Name | Type | Description | Method |
---|---|---|---|
ChannelNumber | integer | This object represents the channel number. This sets the center frequency of the transmission. If there are other Wi-Fi networks are nearby, configure each Wi-Fi network to use different channel numbers to reduce interference and network drop-outs. | GET POST |
WifiMode | empty | This object sets the wireless mode (wireless G or wireless N). Wireless N mode is backwards compatible with Wireless G and B. Wireless G mode is backwards compatible with Wireless B. A mesh network uses the wireless N mode. | GET POST |
Object Name: ChannelNumber
Property Name | Type | Description | Method |
---|---|---|---|
Id | integer | This property is the id of a channel number. Lists of the ID :
|
GET POST |
Value | integer | This property is the channel number value. Lists of the values :
|
GET |
Object Name: Hotspot
Property Name | Type | Description | Method |
---|---|---|---|
Encryption | empty | This object represents the encryption details. It can be multiple type of encryption possible. Each encryption type need different properties. | GET POST |
Advanced | empty | This object represents the advanced values you can configure for a Wi-Fi connection. | GET POST |
NetworkName | empty | This property is the name of the Wi-Fi network (SSID). The size limit is 32 char. (Except for the client mode) | GET POST |
IpAddress | empty | This property is the IP address for this hotspot (or gateway address that wireless clients will connect to). Ensure that this address is:
|
GET POST |
SubnetMask | empty | This property is the hotspot’s subnetwork mask. | GET POST |
FirstAddress | String | This defines the range of IP addresses to be made available for hotspot clients to use. The narrower the range, the fewer hotspot clients will be able to connect due to the lack of available IP addresses. For example, a range where First Address = 192.168.0.22 and Last Address = 192.168.0.26 will allow a maximum of 5 clients to connect to the hotspot on a first-to-connect basis. | GET POST |
LastAddress | String | This defines the range of IP addresses to be made available for hotspot clients to use. The narrower the range, the fewer hotspot clients will be able to connect due to the lack of available IP addresses. For example, a range where First Address = 192.168.0.22 and Last Address = 192.168.0.26 will allow a maximum of 5 clients to connect to the hotspot on a first-to-connect basis. | GET POST |
URL Example: https://0.0.0.0/api/rest/v1/system/network/adapters/wireless/primary/hotspot
{
"advanced": {
"wifiMode": "G",
"channelNumber": {
"value": "2.437GHz",
"id": 6
}
},
"subnetMask": "255.255.255.0",
"lastAddress": "192.168.0.254",
"networkName": "ECLYPSE-CD4C93",
"encryption": {
"type": "WPA2",
"password": "ZWNseXBzZTEyMzQ="
},
"firstAddress": "192.168.0.2",
"ipAddress": "192.168.0.1"
}
URL Example: https://0.0.0.0/api/rest/v1/system/network/adapters/wireless/primary/hotspot
<?xml version="1.0" encoding="utf-8"?>
<Hotspot>
<NetworkName>ECLYPSE-CD4C93</NetworkName>
<Encryption>
<Type>WPA2</Type>
<Password>ZWNseXBzZTEyMzQ=</Password>
</Encryption>
<IpAddress>192.168.0.1</IpAddress>
<SubnetMask>255.255.255.0</SubnetMask>
<FirstAddress>192.168.0.2</FirstAddress>
<LastAddress>192.168.0.254</LastAddress>
<Advanced>
<ChannelNumber>
<Id>6</Id>
<Value>2.437GHz</Value>
</ChannelNumber>
<WifiMode>G</WifiMode>
</Advanced>
</Hotspot>