Mihail Stoyanov / SensorDataParser
Embed: (wiki syntax)

« Back to documentation index

SensorDataParser.h File Reference

SensorDataParser.h File Reference

Parser for Sensor Data Streamer (binary) and Sensor Monitor (cvs) iPhone/Android apps. More...

Go to the source code of this file.

Data Structures

struct  SENSOR_DATA
 Processed data by parse_sensor_packet() More...

Functions

int parse_sensor_packet (char *buf, SENSOR_DATA *pd)
 Parses a packet with sensor data.

Detailed Description

Parser for Sensor Data Streamer (binary) and Sensor Monitor (cvs) iPhone/Android apps.

Author:
Bogdan Marinescu & Mihail Stoyanov
Version:
1.0
See also:

Copyright (c) 2013

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Definition in file SensorDataParser.h.


Function Documentation

int parse_sensor_packet ( char *  buf,
SENSOR_DATA pd 
)

Parses a packet with sensor data.

Currently supported packet formats:

  • Sensor Data Streamer (binary)
  • Sensor Monitor (csv)
Parameters:
bufThe packet contents
pdprocessed data
Returns:
0 - Invalid packet type
1 - Sensor Data Streamer packet
2 - Sensor Monitor packet

Definition at line 83 of file SensorDataParser.cpp.