... | ... | @@ -10,6 +10,7 @@ |
|
|
* [3.4 Post sensor value](#post_sensor_value)
|
|
|
* [3.5 Register CEMS](#register_cems)
|
|
|
* [3.6 Get all sensor values](#get_all_values)
|
|
|
* [3.7 Setup wifi of CEMS](#setup_wifi)
|
|
|
|
|
|
___
|
|
|
|
... | ... | @@ -235,7 +236,7 @@ ___ |
|
|
### <a name="get_ssid"></a> 3.2 Get SSIDs of CEMS
|
|
|
A request to get all SSIDs of a certain CEMS. <br/>
|
|
|
**Note**<br/>
|
|
|
This request is currently not completly implemented!
|
|
|
This request is currently not completly implemented! It returns a hardcoded list of SSIDs.
|
|
|
|
|
|
**URL**
|
|
|
|
... | ... | @@ -262,7 +263,16 @@ This request is currently not completly implemented! |
|
|
|
|
|
**Success Response:**
|
|
|
|
|
|
* **NOT FULLY IMPLEMENTED**
|
|
|
* **Code:** 200 'SUCCESS'<br>
|
|
|
**Content:**
|
|
|
```json
|
|
|
[
|
|
|
"WiFi1",
|
|
|
"WiFi2",
|
|
|
"GuestWiFi"
|
|
|
]
|
|
|
```
|
|
|
|
|
|
|
|
|
**Error Response:**
|
|
|
|
... | ... | @@ -549,3 +559,62 @@ Request, which returns all sensor values of a user. |
|
|
```json
|
|
|
"You dont have the permission for the request"
|
|
|
```
|
|
|
__
|
|
|
|
|
|
### <a name="setup_wifi"></a> 3.7 Setup CEMS WiFi
|
|
|
Request to post all needed informations to setup the wifi of a CEMS.
|
|
|
|
|
|
**Note:**
|
|
|
The setup informations are currently not passed to the CEMS!
|
|
|
|
|
|
**URL**
|
|
|
|
|
|
`/api/v1/setup_cems_wifi`
|
|
|
|
|
|
**Method:**
|
|
|
|
|
|
`POST`
|
|
|
|
|
|
**Scope:**
|
|
|
|
|
|
`user`
|
|
|
|
|
|
**URL Params**
|
|
|
|
|
|
`None`
|
|
|
|
|
|
**Data Params**
|
|
|
|
|
|
* **Required:**
|
|
|
|
|
|
```javascript
|
|
|
cems_ui=[string]
|
|
|
ssid=[string]
|
|
|
password=[string]
|
|
|
```
|
|
|
|
|
|
**Success Response:**
|
|
|
* **Code:** 200 `SUCCESS`<br />
|
|
|
|
|
|
|
|
|
**Error Response:**
|
|
|
* **Code:** 403 `FORBIDDEN` <br>
|
|
|
**Content:**
|
|
|
|
|
|
```json
|
|
|
"You dont have the permission for the request"
|
|
|
```
|
|
|
|
|
|
* **Code:** 404 `NOT FOUND` <br>
|
|
|
**Content:**
|
|
|
|
|
|
```json
|
|
|
"User not found"
|
|
|
```
|
|
|
|
|
|
* **Code:** 404 `NOT FOUND` <br>
|
|
|
**Content:**
|
|
|
|
|
|
```json
|
|
|
"CEMS not found"
|
|
|
``` |