json vom julien hochgeladen
This commit is contained in:
parent
07173e875e
commit
87d5164cfa
67
ws2011/BP/Json von Julien/new json.txt
Normal file
67
ws2011/BP/Json von Julien/new json.txt
Normal file
@ -0,0 +1,67 @@
|
||||
1.) Folgendes wird übermittelt beim Start/Login/Änderungen von Optionen (z.B der Kalibrierung)
|
||||
|
||||
HTTP-Post-Parameter:
|
||||
flag=deviceinfo
|
||||
json=JSON-Daten
|
||||
|
||||
Das JSON hat folgendes Format:
|
||||
|
||||
{
|
||||
“deviceType”: INT, (1: Smartphone)
|
||||
“deviceID”: INT, (beim Smartphone die IMEI)
|
||||
“deviceManufactor”: STRING,
|
||||
“deviceModel”: STRING,
|
||||
|
||||
“deviceName”: STRING (“Benutzerspezifischer Name, kann selbst vergeben werden,
|
||||
z.B Julien Handy”)
|
||||
|
||||
“sensors”: [
|
||||
“type”: INT, (1:Audio)
|
||||
“sensorAttributes”: [ Sensorattribute als Key-Value-Pair
|
||||
“key”: STRING,
|
||||
“value”: STRING
|
||||
]
|
||||
|
||||
]
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
2.) Neues JSON-Format für das Senden der Daten.
|
||||
|
||||
HTTP-Post-Parameter (wie gehabt)
|
||||
flag=input
|
||||
source=smartphone
|
||||
json=JSON-Daten
|
||||
|
||||
|
||||
{
|
||||
“device”: STRING, (Handy IMEI)
|
||||
“measurementType”: INT, (=1 für Lautstärke)
|
||||
“user”: INT, (dasense User-ID)
|
||||
|
||||
“series”: [
|
||||
“name": STRING,,
|
||||
“visibility”:INT,
|
||||
"timestamp”:LONG,
|
||||
|
||||
|
||||
“values”: [
|
||||
“timestamp”: LONG,
|
||||
“leq”: FLOAT,
|
||||
“latitude”: FLOAT,
|
||||
“longitude”: FLOAT,
|
||||
“altitude”: FLOAT,
|
||||
“accuracy”: FLOAT,
|
||||
“provider”: STRING,
|
||||
|
||||
“tags”: [
|
||||
“key”: STRING,
|
||||
“value”: STRING,
|
||||
]
|
||||
]
|
||||
]
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user