Public Member Functions | |
| Environment (stdClass $data, Api $api) | |
| getID () | |
| getName () | |
| getFloors () | |
| getGpsOutline () | |
| getPosition () | |
| getDate () | |
| update ($name) | |
| getSensors () | |
| removeSensor ($sensorID) | |
| addSensors ($sensorIds) | |
| Environment::addSensors | ( | $ | sensorIds | ) |
The method adds a sensor to an environment. To connect an individual sensor a sensor object with only the sensor id can be given and to connect a list of sensors a sensors object with an array of sensor ids can be given.
public
| Array | sensorIds |
| Environment::Environment | ( | stdClass $ | data, |
| Api $ | api | ||
| ) |
This method list the sensors which are connected to this environment.
public
| Environment::removeSensor | ( | $ | sensorID | ) |
This method removes the selected sensor from the selected environment.
public
| int | sensorID |
| Environment::update | ( | $ | name | ) |
This method updates an environment. Only the fields that are send will be updated.
public
| string | name |