12.07.2015 Views

waspmote-gsm-gprs-pr.. - Libelium

waspmote-gsm-gprs-pr.. - Libelium

waspmote-gsm-gprs-pr.. - Libelium

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

General functions8.11. Getting available operatorsThis function gets the currently available operators from network and stores it in ‘operators_list’.It returns ‘1’ on success, ‘0’ if error and ‘-2’ if CME error code available.Example of use:{GPRS_Pro.getAvailableOperators();}Related variablesoperators_list struct that stores the format and the name of the operators.8.12. Setting <strong>pr</strong>eferred operatorThis function sets the <strong>pr</strong>eferred operator in the operators list into GPRS_Pro module.It returns ‘1’ on success, ‘0’ if error and ‘-2’ if CME error code available.Example of use:{GPRS_Pro.setPreferredOperator(1, 0, “operator”); // Sets “operator” in short format inthe second index}8.13. Getting cell informationThis function gets the information from the cell where the module is connected and stores it in ‘RSSI’ and ‘cellID’ variables.It returns ‘1’ on success, ‘0’ if error and ‘-2’ if CME error code available.Example of use:{GPRS_Pro.getCellInfo();}The RSSI value is measured in -dBm.-30- v0.5

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!