progetto201 API
Functions | Variables
rssi.php File Reference

RSSI: manages RSSI of the nodes. More...

Functions

 get_rssi ($t_conn_res)
 Returns all RSSI of the nodes. More...
 

Variables

 $response = array("errors" => array())
 Prepare default response array with no errors. More...
 
 $data_tables = array("t_type0_data")
 Array with data tables. More...
 

Detailed Description

RSSI: manages RSSI of the nodes.

Client perspective:

The script tries to connect to the database and then checks the request method.

If the method is GET get_rssi() is called.

Error codes:

Since
01_01
Author
Stefano Zenaro (https://github.com/mario33881)

Function Documentation

◆ get_rssi()

get_rssi (   $t_conn_res)

Returns all RSSI of the nodes.

A loop uses $data_tables to make the query string. These strings are executed by the queryToArray() function.

Errors list:

  • 610: Error during query execution
Since
01_01
Parameters
array$t_conn_resfile system path with plans
Returns
array $action_res array with errors or plans data

Variable Documentation

◆ $data_tables

$data_tables = array("t_type0_data")

Array with data tables.

◆ $response

$response = array("errors" => array())

Prepare default response array with no errors.