This is a personal collation of the mobile Phone development document template, easy to write their own documents later.
The general content is as follows , in detail in the personal csdn download :
Mobile forwarding SMS upload temperature and humidity information
The mobile side is responsible for receiving the background temperature and humidity sensor through the text message sent by the temperature and humidity and latitude and longitude information, the mobile backend after receiving the Web server upload, of course, the sensor can also be directly uploaded via WiFi Web server. Returns lowercase true or false.
Request URL:
http://192.168.1.101:8080/RFID/addTransTemperature.action?phoneNumber=123&temperature=12.0&humidity= 11.0&time=20141225000000&longitude=23.122&latitude=157.154
Request Parameters: |
PhoneNumber |
Sensor number (or phone number) |
|
Temperature |
Temperature |
|
Humidity |
Humidity |
|
Time |
Send Time |
|
Longitude |
Longitude |
|
Latitude |
Latitude |
return value True or False |
|
Example: True
Iv. Query Current Temperature change information
Mobile terminal through the mobile phone to view the temperature and humidity changes in the cabin information, so that abnormal information timely processing, return to the temperature information list.
Request URL:
http://192.168.1.101:8080/RFID/queryAndroidAllTemperature.action?count=5&transportNumber=zss20141225
Request Parameters: |
Count |
Number of request records at one time |
|
Transportnumber |
Shipping Batches |
return Parameters: Collection List |
Temperatureid |
Record ID |
|
PhoneNumber |
Sensor number (or phone number) |
|
Temperature |
Temperature |
|
Humidity |
Humidity |
|
Longitude |
Longitude |
|
Latitude |
Latitude |
|
Time |
Send Time |
Detailed parameters can be queried for the transport domain Layer object definition.
return Example:
"List": [
{
"Humidity": 38.11,
"Latitude": 0,
"Longitude": 0,
"PhoneNumber": "123",
"Temperature": 21.00,
"Temperatureid": "402881f24a712ea5014a713bbf080019",
"Time": "20141222090217"
}, {
"Humidity": 38.10,
"Latitude": 0,
"Longitude": 0,
"PhoneNumber": "123",
"Temperature": 21.20,
"Temperatureid": "402881f24a712ea5014a713bbf080020",
"Time": "20141222090207"
}
]
Mobile Client Interface Development document template collation