Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change transfer format #34

Open
lexaux opened this issue Feb 15, 2014 · 2 comments
Open

Change transfer format #34

lexaux opened this issue Feb 15, 2014 · 2 comments
Assignees

Comments

@lexaux
Copy link
Owner

lexaux commented Feb 15, 2014

Please see issue lexaux/RoadworksSensorLogger#16 in the client app - the data which runs between client and server changes, so we'll need to adapt to it.

@lexaux
Copy link
Owner Author

lexaux commented Feb 15, 2014

The new upload (POST) format is the following:

[
    // single record object
    {
        // CSV-style data of the session. Heading shows its structure pretty well.
        "data": "Time, Severity, Lat, Lon, Speed\n1392495160711,27.623926877975464,0.0,0.0,0.0\n",

        // session start time and end time
        "startTime": "Sat, 15 Feb 2014 10:12:39 EET",
        "endTime": "Sat, 15 Feb 2014 10:12:41 EET",

        // client-side ID of the session
        "id": 23,

        // amount of events logged. This is the amount of lines in 'data' field (remember the heading)
        "eventsLogged": 1
    }
]

@ImmortalJoker
Copy link
Collaborator

does it necessary store to "data" strings as first line?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants