http://www.wavecom.com/forum Open AT ® Release version: 3.13 |
This sample depends on the following libraries :
This application monitors a SPI temperature sensor to display temperature indications.
As this application uses the MultiApp library, the following start/stop command has to be used to control the application execution.
AT+TEMPSTART (Temperature monitor start/stop command)
Command | Answers |
AT+TEMPSTART? | +TEMPSTART:
<state>
OK |
AT+TEMPSTART=? | +TEMPSTART:
(0-1)
OK |
AT+TEMPSTART= <state> | +CME ERROR: 3 or OK |
Parameter | Values range | Description | Default value |
state | 0-1 | The current application running state. This parameter is stored in non-volatile memory. | 0 |
The init entry point sent to the MultiApp library is the temp_init() function. The start/stop entry points linked to the +TEMPSTART command are the temp_start() and temp_stop() functions.
This application gets the temperature from the MAX 6662 temperature sensor, using the Drivers library appropriate driver.
The temperature is get with the +TEMP command :
AT+TEMP (Temperature read command)
Command | Answers |
AT+TEMP=? | OK |
AT+TEMP? | +TEMP:
<temperature>
OK |
Parameter | Values range | Description | Default value |
temperature | NA | Read temperature, from MAX 6662 chip (in C degrees) | NA |
Updated: Wed Apr 4 13:16:31 CEST 2007;